mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
DocBook: ignore fonts in ERT.
Also, mark a Slides test as passing, because it is valid DocBook (but not really useful).
This commit is contained in:
parent
12d512d4e4
commit
a6cc62f6ee
@ -530,6 +530,7 @@ Sublabel: docbook poster
|
||||
export/.*Poster.*_docbook5
|
||||
|
||||
Sublabel: docbook beamer
|
||||
# Beamer is not yet implemented.
|
||||
# Beamer is not yet implemented. One test passes, but mostly by chance.
|
||||
!export/templates/Presentations/Slides_docbook5
|
||||
export/(examples|templates)/(de|es|fr|ja|ru)/Presentations/.*_docbook5
|
||||
export/(examples|templates)/Presentations/.*_docbook5
|
||||
|
@ -98,7 +98,7 @@ void InsetERT::docbook(XMLStream & xs, OutputParams const & runparams) const
|
||||
// in an ERT, use simple line breaks.
|
||||
// New line after each paragraph of the ERT, save the last one.
|
||||
while (true) { // For each paragraph in the ERT...
|
||||
auto pars = par->simpleDocBookOnePar(buffer(), runparams, text().outerFont(distance(begin, par)));
|
||||
auto pars = par->simpleDocBookOnePar(buffer(), runparams, text().outerFont(distance(begin, par)), 0, false, true);
|
||||
auto p = pars.begin();
|
||||
while (true) { // For each line of this ERT paragraph...
|
||||
os << *p;
|
||||
@ -125,7 +125,6 @@ void InsetERT::docbook(XMLStream & xs, OutputParams const & runparams) const
|
||||
xs << XMLStream::ESCAPE_NONE << "<!-- ";
|
||||
xs << XMLStream::ESCAPE_COMMENTS << os.str();
|
||||
xs << XMLStream::ESCAPE_NONE << " -->";
|
||||
xs << xml::CR();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user