diff options
Diffstat (limited to 'man2html')
-rw-r--r-- | man2html/man2html.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/man2html/man2html.c b/man2html/man2html.c index 3a06408..6c8799d 100644 --- a/man2html/man2html.c +++ b/man2html/man2html.c @@ -3048,12 +3048,12 @@ do_scan_troff(char *c, int san, int htmlesc, char **result) { /* san : stop at n while (*h && (!san || newline_for_fun || *h != '\n')) { if (*h == escapesym) { h++; - if ((ibp > 0 && !isspace(intbuff[ibp-1])) || !fillout) - escnl = 1; FLUSHIBP; h = scan_escape(h); - if (*h != '\n') - escnl = 0; + outbuffer[obp] = 0; + if (*h == '\n' && + ((obp > 0 && !isspace(outbuffer[obp-1])) || !fillout)) + escnl = 1; } else if (*h == '\b') { intbuff[ibp++]=*h++; if (ibp>480) { FLUSHIBP; } @@ -3137,6 +3137,7 @@ do_scan_troff(char *c, int san, int htmlesc, char **result) { /* san : stop at n h++; } } + escnl = 0; break; case '\t': { |