diff options
author | Timothy Pearson <[email protected]> | 2014-10-18 18:35:56 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-10-18 18:35:56 -0500 |
commit | 891da4b83e901780ca4becb9b6f7c9cf0fb70ffd (patch) | |
tree | b177b8ddddf3a0e73a86e482d88e0e188c601516 /tdeioslave/man/man2html.cpp | |
parent | 0c11ace605ba33feb137eca638a39c27a71e1d8d (diff) | |
parent | d7ccc16037550f5dc9ba2db00e47ea950c3732d2 (diff) | |
download | tdebase-891da4b83e901780ca4becb9b6f7c9cf0fb70ffd.tar.gz tdebase-891da4b83e901780ca4becb9b6f7c9cf0fb70ffd.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdebase
Diffstat (limited to 'tdeioslave/man/man2html.cpp')
-rw-r--r-- | tdeioslave/man/man2html.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tdeioslave/man/man2html.cpp b/tdeioslave/man/man2html.cpp index 67354e1b1..eee3ac803 100644 --- a/tdeioslave/man/man2html.cpp +++ b/tdeioslave/man/man2html.cpp @@ -2707,6 +2707,7 @@ static const char *section_list[] = { "3L", "Lightweight Processes Library", "3M", "Mathematical Library", "3N", "Network Functions", + "3p", "Perl Functions", "3R", "RPC Services Library", "3S", "Standard I/O Functions", "3V", "C Library Functions", @@ -5482,16 +5483,17 @@ static char *scan_troff_mandoc(char *c, bool san, char **result) end++; } - if (end > c + 2 + if (end >= c + 2 && ispunct(*(end - 1)) && isspace(*(end - 2)) && *(end - 2) != '\n') { /* Don't format lonely punctuation E.g. in "xyz ," format * the xyz and then append the comma removing the space. */ - *(end - 2) = '\n'; - ret = scan_troff(c, san, result); - *(end - 2) = *(end - 1); - *(end - 1) = ' '; + *(end - 2) = 0; + (void)scan_troff(c, 0, result); + ret = end-2; + *(end-2)=*(end-1); + *(end-1)=' '; } else { ret = scan_troff(c, san, result); |