On Wed, Jan 26, 2011 at 04:37:29PM +0100, Pavel Sanda wrote: > Enrico Forestieri wrote: > > As already said, the class is simply a wrapper around odocstream, so it > > should be safe > > i see one possible collision. we maintain TeXRow structure to keep > mapping between .lyx cursor position <-> .tex lines. > > the moment you start do something magical inside newline structure > of otexstream the machinery which automatacilly adds +1 on many > places where we do some os<<"blabla\n" will collapse, no?
No, I already tried to audit that. The only possibility of missing a newline would be when outputing "\nblabla", i.e., when the '\n' is the first char of a string. So, checking is quite strightforward. -- Enrico