The problem comes when I am working with LaTeX document. For example I write:
Code: Select all
This effect was investigated both theoretically\cite{
Xu:1999} and experimentally \cite{Wellknown:2001:SF,
Wellstood:2000:zigzag}
What do we see? TextPad decided that it is okay to word wrap after '{' and also after ',', although there were no space after them. If I work in the mode when hard breaks are inserted at the end of lines (immidiately or when I save) I will get additional '\r\n' (return and line feed) characters inserted after '{' and also after ','. When I will pass this document to LaTeX compiler, LaTeX will complain because it is not supposed to be any '\r\n' (which are interpreted like space) after '{' and also after ','. Thus TextPad's word wrapping routine has introduced the bug in LaTex file.
What can be done? One very simple thing. Associate with each document class a list of characters which are okay to wrap at/after. In the most strict case this will be only space. But let the user choose.
So, for LaTeX documents I would definitely remove "{}()[],:" from this list.
Edward