Output cosmetics, mostly. Get the newlines better.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29962 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-06-05 18:57:33 +00:00
parent 47b796d41f
commit a3915db54f
2 changed files with 6 additions and 3 deletions

View File

@ -2413,6 +2413,8 @@ void Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
i += 1;
}
}
else
os << c;
} else
os << html::escapeChar(c);
}

View File

@ -201,10 +201,11 @@ ParagraphList::const_iterator makeParagraphs(Buffer const & buf,
bool const opened = openTag(os, lay);
par->simpleLyXHTMLOnePar(buf, os, runparams,
outerFont(distance(paragraphs.begin(), par), paragraphs));
if (opened)
if (opened) {
closeTag(os, lay);
os << '\n';
}
}
return pend;
}
@ -338,6 +339,7 @@ void makeCommand(Buffer const & buf,
outerFont(distance(paragraphs.begin(), pbegin), paragraphs));
if (main_tag_opened)
closeTag(os, style);
os << '\n';
}
} // end anonymous namespace
@ -377,7 +379,6 @@ void xhtmlParagraphs(ParagraphList const & paragraphs,
default:
break;
}
os << '\n';
// makeEnvironment may process more than one paragraphs and bypass pend
if (distance(lastpar, par) >= distance(lastpar, pend))
break;