File: 031-man2html-BR-empty-line.patch

package info (click to toggle)
man2html 1.6f%2Brepack-1%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,416 kB
  • ctags: 2,894
  • sloc: ansic: 9,558; sh: 2,301; makefile: 343; perl: 335; awk: 305; lisp: 171; cs: 170
file content (17 lines) | stat: -rw-r--r-- 585 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Ignore font change requests that are note followed by any words (closes: #489181).

diff -ruN -x '*.rej' -x '*.orig' man-1.6f-old/man2html/man2html.c man-1.6f/man2html/man2html.c
--- man-1.6f-old/man2html/man2html.c	2008-09-07 10:56:00.000000000 +0200
+++ man-1.6f/man2html/man2html.c	2008-09-07 10:56:54.000000000 +0200
@@ -2131,7 +2131,10 @@
 		char font[2];
 		font[0] = c[0]; font[1] = c[1];
 		c = c+j;
-		if (*c == '\n') c++;
+		if (*c == '\n') {
+		    c++;
+		    break;
+		}
 		sl = fill_words(c, wordlist, SIZE(wordlist), &words, '\n');
 		c = sl+1;
 		/* .BR name (section)