>>>>> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes:

Dekel> On Mon, Jun 18, 2001 at 10:35:39AM +0200, Jean-Marc Lasgouttes
Dekel> wrote:
>> >>>>> "montyline" == montyline <[EMAIL PROTECTED]> writes:
montyline> I'm inserting text files with insert->insert_file->ascii
montyline> like lines. And i apply lyx-code enviroment to it, there
montyline> are blank spaces and protected blank spaces.
>>
montyline> Well, when i generate the ps the font is not singled space
montyline> (like courier) that's what i want. I don't get it until I
montyline> close the file and reopen it. A little bizarre, isn't it?
montyline> Using 1.1.6fix2 on linux.
>>  I'm not sure I understand you... Could you give us a step-by-step
>> example of what you do?

Dekel> If I understand correctly, when inserting an ASCII file, the
Dekel> spaces before the first non-space are translated into protected
Dekel> blanks. However, in a lyx-code paragraph, the roles of normal
Dekel> space and protected space are exchanged, namely the latex
Dekel> output of normal spaces is '~', while the latex output of a
Dekel> protected space is ' '. Therefore, the code will not be
Dekel> indented in the DVI output. When the file is reopened, the
Dekel> protected spaces in lyx-code are converted into normal spaces,
Dekel> so the problem is fixed.

We should change the code which inserts ascii strings to remove this
stupid hack of aternating normal and protected blanks strings.
Consecutive blanks should just be ignored.

Dekel> So I guess that the output of protected space in lyx-code is
Dekel> should be '~' and not ' '. This is easy to fix
Dekel> (InsetSpecialChar::Latex).

There should not be protected spaces in LyX Code, in fact. The right
way to do what montyline wanted is to select LyX-Code _before_ doing
the insertion of text.

JMarc

Reply via email to