зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 68087 (second try). We need to ensure we get a new line after a div tag. Patch submitted by skamio@netscape.net. R=tmutreja, SR=jst, A=asa
This commit is contained in:
Родитель
3cb0b24334
Коммит
c8a5a40396
|
@ -867,10 +867,13 @@ nsPlainTextSerializer::DoCloseContainer(PRInt32 aTag)
|
|||
else if (type == eHTMLTag_span) {
|
||||
--mSpanLevel;
|
||||
}
|
||||
|
||||
else if (type == eHTMLTag_div) {
|
||||
if (mFloatingLines < 0)
|
||||
mFloatingLines = 0;
|
||||
mLineBreakDue = PR_TRUE;
|
||||
}
|
||||
else if (IsBlockLevel(aTag)
|
||||
&& type != eHTMLTag_blockquote
|
||||
&& type != eHTMLTag_div
|
||||
&& type != eHTMLTag_script
|
||||
&& type != eHTMLTag_doctypeDecl
|
||||
&& type != eHTMLTag_markupDecl) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче