On 08/08/2010 03:30 PM, Jean-Marc Lasgouttes wrote:
This patch implements proper passthru for normal layouts. In
particular, it makes
paragraph breaks generate single \n in latex output.
This means that it is not necessary anymore to use newlines to break
lines. Plain
paragraph breaks can be used instead, like is done now in
ERT/Listings. This is
mainly aimed at sweave support.
I see what this does now, and I like it. I'm not sure if this feature
should be independent of passthru or not. Are there or might there be
cases where one might be wanted but not the other? I guess I'd be
inclined to separate them, i.e., do the other patch, too, unless that
seems a hassle.
There is however a problem with this change: in old documents, a
paragraph break would
generate an empty line, but now it will be a single line break. Also,
it would be nice
to remove InsetLine:s in paragraphs. Unfortunately, lyx2lyx knows
nothing about layouts
so I cannot have a special handling of PassThru layouts.
Hmm. Well, short of trying to make lyx2lyx layout-aware, I have no idea
what to do about this. That said, the old behavior is surely broken.
By the way, this patch does have some "NewLine 1" stuff in it....
Richard