openbsd-ports/x11/kde/base3/patches/patch-kioslave_man_man2html_cpp
espie af7e1f85d0 basic import of kde 3.1.95, still missing a few parts.
TODO:
- compile the missing packages.
- redo konsole fixes for our ttys.
- figure out why kuickshow is broken.
- make sure we get all dependencies.
- repair kscd.
- find out why nsplugins does not like the native jdk.
- figure out how to get kvim to work.
- change filenames or adjust check-lib-depends to cope.
2004-02-01 14:59:21 +00:00

35 lines
1.1 KiB
Plaintext

$OpenBSD: patch-kioslave_man_man2html_cpp,v 1.8 2004/02/01 14:59:22 espie Exp $
--- kioslave/man/man2html.cpp.orig 2004-01-17 13:48:08.000000000 +0100
+++ kioslave/man/man2html.cpp 2004-01-21 01:20:49.000000000 +0100
@@ -1873,6 +1873,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",
@@ -3992,16 +3993,17 @@ static char *scan_troff_mandoc(char *c,
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);