summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2012-06-12 12:47:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2012-06-12 12:47:14 +0000
commit322d2fd624ef6ec7c4eabd5929c2bff61774b5eb (patch)
tree34b02240238f7951af51c10ff14fac15a1347aac
parentedebea6531d23e3adebfd6cad3f50bba7f2cfb33 (diff)
downloadmandoc-322d2fd624ef6ec7c4eabd5929c2bff61774b5eb.tar.gz
Fix an assert() raised by `RS' when following `TP'.
The reason was that `RS' wasn't BSCOPE'd, so the next-line (BLINE) scope opened by `TP' would still be in the HEAD macro. This was from joerg@'s archive of failures.
-rw-r--r--TODO6
-rw-r--r--man_macro.c2
2 files changed, 1 insertions, 7 deletions
diff --git a/TODO b/TODO
index 93ecd50d..d2619a25 100644
--- a/TODO
+++ b/TODO
@@ -319,12 +319,6 @@
in dig(1).
************************************************************************
-* error reporting issues
-************************************************************************
-
-- .TP directly followed by .RS gives an assertion.
-
-************************************************************************
* performance issues
************************************************************************
diff --git a/man_macro.c b/man_macro.c
index 66672b2d..7ba1fca0 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -78,7 +78,7 @@ const struct man_macro __man_macros[MAN_MAX] = {
{ in_line_eoln, MAN_BSCOPE }, /* nf */
{ in_line_eoln, MAN_BSCOPE }, /* fi */
{ blk_close, 0 }, /* RE */
- { blk_exp, MAN_EXPLICIT }, /* RS */
+ { blk_exp, MAN_BSCOPE | MAN_EXPLICIT }, /* RS */
{ in_line_eoln, 0 }, /* DT */
{ in_line_eoln, 0 }, /* UC */
{ in_line_eoln, 0 }, /* PD */