Remove unnecessary empty lines in article body. New feature?
Dennis Preiser <[email protected]> Thu, 2 Oct 2008 12:17:27 +0200
| Newsgroups | gmane.network.tin.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, when reading news some articles contains (in my opinion) unnecessary empty lines which bothers me. Those lines are: -leading empty lines (the first non empty line jumps from article to article) -multiple empty lines whithin the body -trailing empty lines (annoying when page-down one page and the next page is blank) So I patched my tin to behave like this: -remove leading empty lines -replace multiple empty lines with one empty line (when not in verbatim blocks) -remove trailing empty lines (keep one if an attachement follows) Empty lines in this context are lines with a length of 1 (line[0] == '\n'). For details see the patch attached. If anyone else is interested in this feature I would make it a 'M'enu option (for instance: "Trim article body", default OFF). Regards, Dennis
20081002.diff.gz
(application/x-gzip, 988 B) - not displayed