better fix for #2625

This commit is contained in:
John McLear 2015-05-01 20:44:36 +01:00
parent 4938c7be38
commit 0a9c631410
2 changed files with 6 additions and 2 deletions

View file

@ -113,7 +113,11 @@ body.doesWrap {
word-wrap: break-word; /* fix for issue #1648 - firefox not wrapping long lines (without spaces) correctly */
}
body.doesWrap > div{
.noprewrap{
white-space: normal;
}
body.doesWrap:not(.noprewrap) > div{
/* Related to #1766 */
white-space: pre-wrap;
}

View file

@ -612,7 +612,7 @@ function Ace2Inner(){
// So this has to be set to pre-wrap ;(
// We need to file a bug w/ the Chromium team.
if(browser.chrome){
$("#innerdocbody, body.doesWrap > div").css({"white-space":"pre-wrap"});
$("#innerdocbody").addClass("noprewrap");
}
}