On 9/4/24 05:18, Dr Eberhard Lisse wrote:
I have accessed lyx files with the Subline Text editor which I had
misconfigured to remove all spaces trailing at end of lines.
This has lead to a number concatenations of the last word from the
previous line to the first word in the following line, visible in the
GUI and in the PDF.
Is there a way of fixing this for all files (perl/python or whatever)?
It might be safe to add a space to the end of every line. If so:
perl -pe -ibak 's/$/ /' <OldFile.lyx >NewFile.lyx
or, maybe only if there's not already a space there:
perl -pe -ibak 's/\S$/ /' <OldFile.lyx >NewFile.lyx
Riki
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users