Text document loading only first line in pre tag in Internet explorer





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















Same text document loads perfectly fine in chrome browser but loading only first line in internet explorer.



here is the text document



enter image description here



here is the code, I am loading the content in pre tag as following.



<pre style="background-color: white; ">{{content}}</pre>


But in Internet explorer it shows like this



enter image description here



In chrome it works perfectly fine



enter image description here



Note: red dot in image represents /u0. how to remove this from text content?










share|improve this question




















  • 1





    See here stackoverflow.com/questions/195363/…

    – Carol McKay
    Nov 23 '18 at 8:31











  • @CarolMcKay is there alternative way using css, to fix this issue?

    – user3660375
    Nov 23 '18 at 10:12











  • @user3660375,In IE you need to keep your content in single line in text file. You can use n and t to format the text for Internet Explorer. Then it will display in new line and in proper format in IE. You can directly try to add it in your text file.

    – Deepak-MSFT
    Nov 26 '18 at 2:05











  • @Deepak-MSFT I am geeting text file from the server, which cannot be formatted or replaced.The problem is IE doesnt add a new line for pre and textarea. do you mind providing any solution for this.

    – user3660375
    Nov 26 '18 at 4:15











  • @user3660375, I did not get any solution with pre tag. You can try to use any other tag like span or div to display the text file to check whether it display the file correctly or not.

    – Deepak-MSFT
    Nov 26 '18 at 8:00


















0















Same text document loads perfectly fine in chrome browser but loading only first line in internet explorer.



here is the text document



enter image description here



here is the code, I am loading the content in pre tag as following.



<pre style="background-color: white; ">{{content}}</pre>


But in Internet explorer it shows like this



enter image description here



In chrome it works perfectly fine



enter image description here



Note: red dot in image represents /u0. how to remove this from text content?










share|improve this question




















  • 1





    See here stackoverflow.com/questions/195363/…

    – Carol McKay
    Nov 23 '18 at 8:31











  • @CarolMcKay is there alternative way using css, to fix this issue?

    – user3660375
    Nov 23 '18 at 10:12











  • @user3660375,In IE you need to keep your content in single line in text file. You can use n and t to format the text for Internet Explorer. Then it will display in new line and in proper format in IE. You can directly try to add it in your text file.

    – Deepak-MSFT
    Nov 26 '18 at 2:05











  • @Deepak-MSFT I am geeting text file from the server, which cannot be formatted or replaced.The problem is IE doesnt add a new line for pre and textarea. do you mind providing any solution for this.

    – user3660375
    Nov 26 '18 at 4:15











  • @user3660375, I did not get any solution with pre tag. You can try to use any other tag like span or div to display the text file to check whether it display the file correctly or not.

    – Deepak-MSFT
    Nov 26 '18 at 8:00














0












0








0


1






Same text document loads perfectly fine in chrome browser but loading only first line in internet explorer.



here is the text document



enter image description here



here is the code, I am loading the content in pre tag as following.



<pre style="background-color: white; ">{{content}}</pre>


But in Internet explorer it shows like this



enter image description here



In chrome it works perfectly fine



enter image description here



Note: red dot in image represents /u0. how to remove this from text content?










share|improve this question
















Same text document loads perfectly fine in chrome browser but loading only first line in internet explorer.



here is the text document



enter image description here



here is the code, I am loading the content in pre tag as following.



<pre style="background-color: white; ">{{content}}</pre>


But in Internet explorer it shows like this



enter image description here



In chrome it works perfectly fine



enter image description here



Note: red dot in image represents /u0. how to remove this from text content?







javascript html css google-chrome internet-explorer






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 10:27







user3660375

















asked Nov 23 '18 at 8:24









user3660375user3660375

3519




3519








  • 1





    See here stackoverflow.com/questions/195363/…

    – Carol McKay
    Nov 23 '18 at 8:31











  • @CarolMcKay is there alternative way using css, to fix this issue?

    – user3660375
    Nov 23 '18 at 10:12











  • @user3660375,In IE you need to keep your content in single line in text file. You can use n and t to format the text for Internet Explorer. Then it will display in new line and in proper format in IE. You can directly try to add it in your text file.

    – Deepak-MSFT
    Nov 26 '18 at 2:05











  • @Deepak-MSFT I am geeting text file from the server, which cannot be formatted or replaced.The problem is IE doesnt add a new line for pre and textarea. do you mind providing any solution for this.

    – user3660375
    Nov 26 '18 at 4:15











  • @user3660375, I did not get any solution with pre tag. You can try to use any other tag like span or div to display the text file to check whether it display the file correctly or not.

    – Deepak-MSFT
    Nov 26 '18 at 8:00














  • 1





    See here stackoverflow.com/questions/195363/…

    – Carol McKay
    Nov 23 '18 at 8:31











  • @CarolMcKay is there alternative way using css, to fix this issue?

    – user3660375
    Nov 23 '18 at 10:12











  • @user3660375,In IE you need to keep your content in single line in text file. You can use n and t to format the text for Internet Explorer. Then it will display in new line and in proper format in IE. You can directly try to add it in your text file.

    – Deepak-MSFT
    Nov 26 '18 at 2:05











  • @Deepak-MSFT I am geeting text file from the server, which cannot be formatted or replaced.The problem is IE doesnt add a new line for pre and textarea. do you mind providing any solution for this.

    – user3660375
    Nov 26 '18 at 4:15











  • @user3660375, I did not get any solution with pre tag. You can try to use any other tag like span or div to display the text file to check whether it display the file correctly or not.

    – Deepak-MSFT
    Nov 26 '18 at 8:00








1




1





See here stackoverflow.com/questions/195363/…

– Carol McKay
Nov 23 '18 at 8:31





See here stackoverflow.com/questions/195363/…

– Carol McKay
Nov 23 '18 at 8:31













@CarolMcKay is there alternative way using css, to fix this issue?

– user3660375
Nov 23 '18 at 10:12





@CarolMcKay is there alternative way using css, to fix this issue?

– user3660375
Nov 23 '18 at 10:12













@user3660375,In IE you need to keep your content in single line in text file. You can use n and t to format the text for Internet Explorer. Then it will display in new line and in proper format in IE. You can directly try to add it in your text file.

– Deepak-MSFT
Nov 26 '18 at 2:05





@user3660375,In IE you need to keep your content in single line in text file. You can use n and t to format the text for Internet Explorer. Then it will display in new line and in proper format in IE. You can directly try to add it in your text file.

– Deepak-MSFT
Nov 26 '18 at 2:05













@Deepak-MSFT I am geeting text file from the server, which cannot be formatted or replaced.The problem is IE doesnt add a new line for pre and textarea. do you mind providing any solution for this.

– user3660375
Nov 26 '18 at 4:15





@Deepak-MSFT I am geeting text file from the server, which cannot be formatted or replaced.The problem is IE doesnt add a new line for pre and textarea. do you mind providing any solution for this.

– user3660375
Nov 26 '18 at 4:15













@user3660375, I did not get any solution with pre tag. You can try to use any other tag like span or div to display the text file to check whether it display the file correctly or not.

– Deepak-MSFT
Nov 26 '18 at 8:00





@user3660375, I did not get any solution with pre tag. You can try to use any other tag like span or div to display the text file to check whether it display the file correctly or not.

– Deepak-MSFT
Nov 26 '18 at 8:00












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53442973%2ftext-document-loading-only-first-line-in-pre-tag-in-internet-explorer%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53442973%2ftext-document-loading-only-first-line-in-pre-tag-in-internet-explorer%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?