[EMAIL PROTECTED] (Jürgen Spitzmüller) writes: > You mean, pass information to Font::latexWriteStartChanges that the character > following the font change will be a blank? That could be doable.
It is even simpler than that. JMarc
Index: src/Paragraph.cpp =================================================================== --- src/Paragraph.cpp (révision 19050) +++ src/Paragraph.cpp (copie de travail) @@ -67,6 +67,7 @@ using std::ostream; namespace lyx { using support::contains; +using support::suffixIs; using support::rsplit; @@ -2076,11 +2077,19 @@ bool Paragraph::simpleTeXOnePar(Buffer c font.language() != running_font.language()) && i != body_pos - 1) { - column += font.latexWriteStartChanges(os, bparams, + odocstringstream ods; + column += font.latexWriteStartChanges(ods, bparams, runparams, basefont, last_font); running_font = font; open_font = true; + docstring fontchange = ods.str(); + // check if the fontchange ends with a trailing blank + if (suffixIs(fontchange, 0x0020) && c == ' ') + os << fontchange.substr(0, fontchange.size() - 1) + << from_ascii("{}"); + else + os << fontchange; } if (c == ' ') {