
2 Aug
2007
2 Aug
'07
4:03 p.m.
Thomas Schilling wrote:
The simplest thing I can think of, is to not remove whitespace at all, but to only remove it when you're saving the file. I know that some modes use such a save hook. It also wouldn't modify the actual file (ie, don't remove the whitespace until you save the file for the first time), as long as you edit it. The only time the spaces would be removed permanently were if you save the file, close the buffer, and then re-open the file.
Picture mode removes trailing space when you exit it, so perhaps the function that does that is available to call upon saving. Dave