mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
47b796d41f
commit
a3915db54f
@ -2413,6 +2413,8 @@ void Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
|
|||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
os << c;
|
||||||
} else
|
} else
|
||||||
os << html::escapeChar(c);
|
os << html::escapeChar(c);
|
||||||
}
|
}
|
||||||
|
@ -201,10 +201,11 @@ ParagraphList::const_iterator makeParagraphs(Buffer const & buf,
|
|||||||
bool const opened = openTag(os, lay);
|
bool const opened = openTag(os, lay);
|
||||||
par->simpleLyXHTMLOnePar(buf, os, runparams,
|
par->simpleLyXHTMLOnePar(buf, os, runparams,
|
||||||
outerFont(distance(paragraphs.begin(), par), paragraphs));
|
outerFont(distance(paragraphs.begin(), par), paragraphs));
|
||||||
if (opened)
|
if (opened) {
|
||||||
closeTag(os, lay);
|
closeTag(os, lay);
|
||||||
os << '\n';
|
os << '\n';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return pend;
|
return pend;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -338,6 +339,7 @@ void makeCommand(Buffer const & buf,
|
|||||||
outerFont(distance(paragraphs.begin(), pbegin), paragraphs));
|
outerFont(distance(paragraphs.begin(), pbegin), paragraphs));
|
||||||
if (main_tag_opened)
|
if (main_tag_opened)
|
||||||
closeTag(os, style);
|
closeTag(os, style);
|
||||||
|
os << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end anonymous namespace
|
} // end anonymous namespace
|
||||||
@ -377,7 +379,6 @@ void xhtmlParagraphs(ParagraphList const & paragraphs,
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
os << '\n';
|
|
||||||
// makeEnvironment may process more than one paragraphs and bypass pend
|
// makeEnvironment may process more than one paragraphs and bypass pend
|
||||||
if (distance(lastpar, par) >= distance(lastpar, pend))
|
if (distance(lastpar, par) >= distance(lastpar, pend))
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user