mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Fix bug #9383. Writing directly to the output stream bypassed the
machinery that clears the tag stack.
This commit is contained in:
parent
51cc1a1cbe
commit
5a78a112b6
@ -307,26 +307,30 @@ int InsetQuotes::plaintext(odocstringstream & os,
|
||||
}
|
||||
|
||||
|
||||
int InsetQuotes::docbook(odocstream & os, OutputParams const &) const
|
||||
{
|
||||
docstring InsetQuotes::getQuoteEntity() const {
|
||||
if (times_ == DoubleQuotes) {
|
||||
if (side_ == LeftQuote)
|
||||
os << "“";
|
||||
return from_ascii("“");
|
||||
else
|
||||
os << "”";
|
||||
} else {
|
||||
if (side_ == LeftQuote)
|
||||
os << "‘";
|
||||
else
|
||||
os << "’";
|
||||
return from_ascii("”");
|
||||
}
|
||||
if (side_ == LeftQuote)
|
||||
return from_ascii("‘");
|
||||
else
|
||||
return from_ascii("’");
|
||||
}
|
||||
|
||||
|
||||
int InsetQuotes::docbook(odocstream & os, OutputParams const &) const
|
||||
{
|
||||
os << getQuoteEntity();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
docstring InsetQuotes::xhtml(XHTMLStream & xs, OutputParams const & op) const
|
||||
{
|
||||
docbook(xs.os(), op);
|
||||
xs << XHTMLStream::ESCAPE_NONE << getQuoteEntity();
|
||||
return docstring();
|
||||
}
|
||||
|
||||
|
@ -109,6 +109,8 @@ private:
|
||||
void parseString(std::string const &);
|
||||
///
|
||||
docstring displayString() const;
|
||||
///
|
||||
docstring getQuoteEntity() const;
|
||||
|
||||
///
|
||||
QuoteLanguage language_;
|
||||
|
Loading…
Reference in New Issue
Block a user