On Sun, Jun 05, 2011 at 09:08:11PM +0000, Guenter Milde wrote:

> On 2011-06-03, Enrico Forestieri wrote:
> > On Fri, Jun 03, 2011 at 09:47:35AM +0200, Jean-Marc Lasgouttes wrote:
> 
> >> Le 03/06/11 02:07, Enrico Forestieri a écrit :
> >> >See attached patch.
> 
> >> I am not sure I understand the patch, but how come one has to decide
> >> based on isMainText()? What about a Flex inset in a Note? What would
> >> the situation be different?
> 
> > I am not sure I understand the question, either.
> 
> > As \selectlanguage introduces spurious white space, it should not be used
> > in "inline" content.
> 
> It does not. Only the incorrect use (with a non-escaped line-break)
> does.

That is yet another source of white space. However, even escaping the
line break, white space is still added. Further investigation shows that
the problem seems specifically related to the french language and the
\addto\extrasfrench{...} added by LyX to the preamble.
Compiling the attached example, you can see that spurious white space
is added after "word". This white space disappears by properly escaping
the line breaks in \addto\extrasfrench{...}.

-- 
Enrico

Attachment: babel.tex
Description: TeX document

Reply via email to