On Fri, May 03, 2002 at 02:32:06PM +0200, Jean-Marc Lasgouttes wrote: > > > > No, the 1.2.0 behavior is wrong! Note that text in my example is > > "Hello.<figure-inset> Hello." namely there is a space before the second 'H'. > > In the 1.2.0 output, there is no space between the sentences. > > > > The only place when the 1.1.6 behavior inserts a space to the output is > > when you put the figure in the middle of a word, which is not a sensible > > thing to do. > > I missed that indeed. We should definitely not eat spaces, but not add > new ones either.
Here is a patch that fix this. I'll apply it if there are no objections. Note that the output for "Foo.<float> Bar." is now Foo.% \begin{figure} Bar. \end{figure} Bar. The % char is to prevent having two consecutive \n chars. It can be removed if InsetFloat::latex could know whether the last char of the output stream is \n.