21993: hr should have newline before/after it. Trivial code change, a=gramps

This commit is contained in:
akkana%netscape.com 1999-12-22 22:03:49 +00:00
Родитель 1bdf87b315
Коммит 178652df25
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

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