On Fri, Jun 03, 2011 at 02:32:16PM +0200, Jean-Marc Lasgouttes wrote:

> Le 03/06/11 14:26, Enrico Forestieri a écrit :
> >As \selectlanguage introduces spurious white space, it should not be used
> >in "inline" content. As \selectlanguage is only used when the language is
> >changed at the very beginning of a LyX paragraph, checking isMainText()
> >ensures that it is used only at the beginning of a LaTeX paragraph, such
> >that the spurious white space added at the end is not harmful.
> 
> How well does that work when the flex inset is in a branch, for
> example?

Very well, apparently.

> Can the otexstream be queried to know whether we are at the
> start of a LaTeX paragraph?

No, you can only know whether we are at the start of a new line.

I start to think that you don't realize that this only matters
at export time, though.

-- 
Enrico

Reply via email to