From: Juergen Spitzmueller Date: Sat, 10 Dec 2016 15:13:02 +0000 (+0100) Subject: Fix xhtml output of French double guillemets (spacing) X-Git-Tag: 2.3.0alpha1~640 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=449a89825b38b730a5f47b0fc5329ebe10a3278c;p=features.git Fix xhtml output of French double guillemets (spacing) --- diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index e4f058c6e2..29d9251697 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -309,7 +309,19 @@ int InsetQuotes::plaintext(odocstringstream & os, docstring InsetQuotes::getQuoteEntity() const { const int quoteind = quote_index[side_][language_]; - return from_ascii(html_quote[times_][quoteind]); + docstring res = from_ascii(html_quote[times_][quoteind]); + // in French, thin spaces are added inside double guillemets + // FIXME: this should be done by a separate quote type. + if (prefixIs(context_lang_, "fr") + && times_ == DoubleQuotes && language_ == FrenchQuotes) { + // THIN SPACE (U+2009) + docstring const thin_space = from_ascii(" "); + if (side_ == LeftQuote) + res += thin_space; + else + res = thin_space + res; + } + return res; }