[Vimoutliner] otl2lyx lost spaces
Grahame Blackwood
grahameblackwood at blueyonder.co.uk
Fri Feb 23 15:45:23 EST 2007
Hi
Thank you your suggestions Steve and Noel. I tried Noel's suggestion of
including `set fo+=w' in both .vimrc and .vimoutlinerrc but unfortunately,
the lost spaces are still lost.
I then looked at Steve's endofline suggestion with the following result:
I created a small vo file with a few lines in it and processed it as follows;
cat vo_test.otl | otl2lyx.pl > tmp.lyx
Using vim, I then read tmp.lyx into a lyx skeleton file test.lyx.
On examining test.lyx I found that the lost spaces in test.lyx match the line
ends in tmp.lyx, but not in the vo_test.otl file.
I think this means the problem is not with the line ends in vo_test.otl since
they fall at different points in the file compared with tmp.lyx. Also spaces
that existed between words in the middle of lines in vo_test.lyx are lost by
the time they reach test.lyx (because they fall at line ends in tmp.lyx).
Sorry if I've not explained that very well, but I think that somewhere in the
otl2lyx.pl code that writes the output must be something that ensures the
last character is'nt a space (or even that the first character on the next
line can't be a space).
I'll keep looking in otl2lyx.pl.
Thanks for your guidance.
Cheers
G
More information about the VimOutliner
mailing list