José Matos writes:
> On Tuesday 18 July 2006 15:26, Bo Peng wrote:
> > +       // Adding {} before ' b' fixes this.
> > +       if  (params_.type == InsetNoteParams::Comment)
> > +               ss << "{}";

> Shouldn't this code be conditional?
> This will work for 'a[comment] b' what about the 'a[comment]b' case? In this 
> case no space should be exported...

I think that the current LaTeX code is output as:

a%
\begin{comment}
comment%
\end{comment}
 b

and the compiler swallows all whitespace "\n " after "\end{comment}". There's 
no way for the user to specify that he wants a normal space after the comment.

The suggestion would change that to:

a%
\begin{comment}
comment%
\end{comment}
{} b

The important point is that the space in "{} b" is input by the user (outside 
of the inset). If he doesn't want a space, he wouldn't input it.

The solution seems to be pretty generic; do insets other than Note need 
something similar?

Angus


Reply via email to