Hello,

I have finally killed the SpaceLess(). In fact , it has been renamed
to MakeLatexName() and Buffer now has a new getLatexName() method
which returns the name of the .tex file (with .tex extension).

There were however a few places where spaceless was actually used to
avoid spaces. I replaced it by a new function QuoteName() which adds
single quotes around the argument:
aa      ->      'aa'
JMarc's file    ->      'JMarc\'s file'

(now that I think if it, it probably breaks when a quote is already
backslashed %-|)

These quotes are of course not good for OS/2. So I'd be glad if an
alternative implementation could be given in this case. Otherwise,
I'll just make the function do nothing for OS/2.

What remains to do now is to find all cases where stringe file names
(containing spaces or quotes for example) create problems to programs
other that latex. I did a lot of experiments, but all is not done.

One question: when a command line in lyxrc contains $$FName, should we
provide the quotes automatically? This would force to rewrite some
definition which already have them, but it is maybe a good idea for
the long term anyway.

Thoughts?

JMarc

Reply via email to