Submitted By: Alexander E. Patrakov
Date: 2007-08-20
Initial Package Version: 2.4.4
Origin: Debian
Upstream Status: Backport
Description: Fixes two bugs:
1) makewhatis didn't break descriptions at certain macros
2) ugly error message was displayed when the user pressed
"q" without reading the long manual page
old
|
new
|
|
314 | 314 | /* collapse spaces, escaped spaces, tabs, newlines to a single space */ |
315 | 315 | <CAT_NAME>{next}((\\[ ])|{blank})* add_char_to_whatis (' '); |
316 | 316 | |
317 | | /* a ROFF break request (.br) or a paragraph request (.LP, .PP, .P) |
| 317 | /* a ROFF break request, a paragraph request, or an indentation change |
318 | 318 | usually means we have multiple whatis definitions, provide a separator |
319 | 319 | for later processing */ |
320 | 320 | <MAN_NAME>{ |
321 | 321 | {bol}\.br{blank}* | |
322 | 322 | {bol}\.LP{blank}* | |
323 | 323 | {bol}\.PP{blank}* | |
324 | | {bol}\.P{blank}* add_char_to_whatis ((char) 0x11); |
| 324 | {bol}\.P{blank}* | |
| 325 | {bol}\.IP{blank}.* | |
| 326 | {bol}\.HP{blank}.* | |
| 327 | {bol}\.RS{blank}.* | |
| 328 | {bol}\.RE{blank}.* add_char_to_whatis ((char) 0x11); |
325 | 329 | } |
326 | 330 | |
327 | 331 | <MAN_NAME>{bol}\.{alpha}{2}{blank}* { /* very general roff requests */ |