>>>>> "Edmar" == Edmar Wienskoski <[EMAIL PROTECTED]> writes:
Edmar> Jean-Marc Lasgouttes wrote:
>> I'm not sure either we are talking about the same thing :) I tried
>> what you describe and came up with the files appended. They seem
>> alright to me.
Edmar> Probally you highlited the text and past it into lyx, right ?
Edmar> That is another strange thing Whenever you highlight text with
Edmar> several consecutives spaces it pastes only one space.
If I understand correctly, the problem is that, since LyX does not
like to have consecutive spaces, it adds when pasting this strange mix
of real spaces and ~, which do not make much sense anyway. It would be
better to actually remove the offending spaces.
If you want to be able to paste
Edmar> Anyway, I am attaching another lyx file. Try that one.
Edmar> Ok, here it is: The patch does the correct thing, because lyx
Edmar> stores every other space internally as protected spaces. When
Edmar> in latex mode, *if* the user want a protect space he has to
Edmar> type a tilde char, which is stored internally as a tilde char
Edmar> (not as a protected space). So, spaces are translated to
Edmar> spaces (wether stored internally as spaces ot protected)
Edmar> and tilde chars are translated to tilde chars. Otherwise the
Edmar> user can never get control when in latex paragraph. The
Edmar> attached file demonstrates that clearly.
You are right of course. This is in fact similar to a change I did
recently to ensure that a Ctrl-Return does not generate \\ in LaTeX
mode.
I applied your edmar-3-prot_space patch. Sorry for the confusion.
JMarc