>>>>> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes:
Dekel> On Thu, Mar 09, 2000 at 04:17:21PM -0800, Kayvan A. Sylvan
Dekel> wrote:
>> I was working with my document (a Literate CGI perl script with all
>> scripts and Makefiles included in the document) and got the
>> following. Can anyone reproduce it?
>>
Dekel> Yes. It happens every time I paste (using the X clipboard) a
Dekel> text that starts with a space (not just in footnotes).
OK, I think I fixed that in cvs. In fact, it appears that the code
which tries to insert a protected separator goes like this:
InsetSpecialChar * new_inset =
new InsetSpecialChar(InsetSpecialChar::PROTECTED_SEPARATOR);
par->InsertInset(pos, new_inset);
I happens that it should be like
InsetSpecialChar * new_inset =
new InsetSpecialChar(InsetSpecialChar::PROTECTED_SEPARATOR);
par->InsertChar(pos, LyXParagraph::META_INSET);
par->InsertInset(pos, new_inset);
Lars forgot to add the META_INSET marker at every place where a
protected space is inserted. What I wonder is whether the semantics of
InsertInset should be changed to add automatically the META_INSET
since it seems that all the code calls InsertChar and then
InsertInset. Or is there a need for an InsertInset() which does not
insert the META_INSET?
I'd be glad to see what errors are fixed by this change.
JMarc