machinery that clears the tag stack.
-int InsetQuotes::docbook(odocstream & os, OutputParams const &) const
-{
+docstring InsetQuotes::getQuoteEntity() const {
if (times_ == DoubleQuotes) {
if (side_ == LeftQuote)
if (times_ == DoubleQuotes) {
if (side_ == LeftQuote)
- os << "“";
- else
- os << "”";
- } else {
- if (side_ == LeftQuote)
- os << "‘";
+ return from_ascii("“");
+ 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
{
return 0;
}
docstring InsetQuotes::xhtml(XHTMLStream & xs, OutputParams const & op) const
{
+ xs << XHTMLStream::ESCAPE_NONE << getQuoteEntity();
void parseString(std::string const &);
///
docstring displayString() const;
void parseString(std::string const &);
///
docstring displayString() const;
+ ///
+ docstring getQuoteEntity() const;
///
QuoteLanguage language_;
///
QuoteLanguage language_;