Fix for 59181. HTML lists and format=flowed don't work together. The solution is to disable flow when lines are indented. r=akkana sr=vidur
git-svn-id: svn://10.0.0.236/trunk@82389 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f7286c7b50
commit
df6fc2c67e
@ -1176,8 +1176,11 @@ nsPlainTextSerializer::EndLine(PRBool softlinebreak)
|
||||
' ' == mCurrentLine[--linelength]) {
|
||||
mCurrentLine.SetLength(linelength);
|
||||
}
|
||||
if(mFlags & nsIDocumentEncoder::OutputFormatFlowed) {
|
||||
if((mFlags & nsIDocumentEncoder::OutputFormatFlowed) &&
|
||||
(mIndent == 0)) {
|
||||
// Add the soft part of the soft linebreak (RFC 2646 4.1)
|
||||
// We only do this when there is no indentation since format=flowed
|
||||
// lines and indentation doesn't work well together.
|
||||
mCurrentLine.AppendWithConversion(' ');
|
||||
}
|
||||
mCurrentLine.Append(mLineBreak);
|
||||
|
||||
@ -1176,8 +1176,11 @@ nsPlainTextSerializer::EndLine(PRBool softlinebreak)
|
||||
' ' == mCurrentLine[--linelength]) {
|
||||
mCurrentLine.SetLength(linelength);
|
||||
}
|
||||
if(mFlags & nsIDocumentEncoder::OutputFormatFlowed) {
|
||||
if((mFlags & nsIDocumentEncoder::OutputFormatFlowed) &&
|
||||
(mIndent == 0)) {
|
||||
// Add the soft part of the soft linebreak (RFC 2646 4.1)
|
||||
// We only do this when there is no indentation since format=flowed
|
||||
// lines and indentation doesn't work well together.
|
||||
mCurrentLine.AppendWithConversion(' ');
|
||||
}
|
||||
mCurrentLine.Append(mLineBreak);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user