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:
bratell%lysator.liu.se 2000-11-07 20:02:54 +00:00
parent f7286c7b50
commit df6fc2c67e
2 changed files with 8 additions and 2 deletions

View File

@ -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);

View File

@ -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);