[PATCH] revised verbatim-handling code
Dennis Preiser <[email protected]> Sat, 20 Sep 2008 18:41:38 +0200
| Newsgroups | gmane.network.tin.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I found some minor issues regarding the verbatim handling, so I revised the verbatim handling code. The issues and my changes in short: - verbatim_begin_regex matches more than "#v+". I think the "#" and the "Plus" has to be escaped (DEFAULT_VERBATIM_*_REGEX). NOTE: If the tinrc already contains verbatim_*_regexes these values will be used (not the new DEFAULT_VERBATIM_*_REGEX values), so in this case the user has to change this in the config-menu by hand. - Rot13 does not rotate the verbatim_begin_regex line but the verbatim_end_regex line. The line that matches verbatim_begin_regex was part of the verbatim block, the verbatim_end_regex line was not part of it. I changed this so that only lines _between_ verbatim_begin_regex and verbatim_end_regex are part of a verbatim block (-> rot13 rotate the regex-lines like the normal article body but not the verbatim block). - I changed "verbatim" to "in_verbatim" (like in_sig, in_uue etc.). - Lines within a verbatim block now gets the C_VERBATIM flag, whether HAVE_COLOR is defined or not (like C_SIG, C_BODY), so all article- lines have a dedicated flag independent of HAVE_COLOR. Please find the patch attached. Regards, Dennis
20080920.diff.gz
(application/x-gzip, 1 KB) - not displayed