зеркало из https://github.com/mozilla/gecko-dev.git
21993: hr should have newline before/after it. Trivial code change, a=gramps
This commit is contained in:
Родитель
1bdf87b315
Коммит
178652df25
|
@ -811,12 +811,16 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
|
|||
else if (type == eHTMLTag_hr &&
|
||||
(mFlags & nsIDocumentEncoder::OutputFormatted))
|
||||
{
|
||||
EnsureVerticalSpace(0);
|
||||
|
||||
// Make a line of dashes as wide as the wrap width
|
||||
nsAutoString line;
|
||||
int width = (mWrapColumn > 0 ? mWrapColumn : 25);
|
||||
while (line.Length() < width)
|
||||
line += '-';
|
||||
Write(line);
|
||||
|
||||
EnsureVerticalSpace(0);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -811,12 +811,16 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
|
|||
else if (type == eHTMLTag_hr &&
|
||||
(mFlags & nsIDocumentEncoder::OutputFormatted))
|
||||
{
|
||||
EnsureVerticalSpace(0);
|
||||
|
||||
// Make a line of dashes as wide as the wrap width
|
||||
nsAutoString line;
|
||||
int width = (mWrapColumn > 0 ? mWrapColumn : 25);
|
||||
while (line.Length() < width)
|
||||
line += '-';
|
||||
Write(line);
|
||||
|
||||
EnsureVerticalSpace(0);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче