mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
better fix for #2625
This commit is contained in:
parent
4938c7be38
commit
0a9c631410
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue