summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-31 10:28:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-31 10:28:04 +0000
commit72b03dec1c3cb23cc1f97c902936f91bd60b582a (patch)
treecfb7e1d636b7bc8ecfcefab4084381e7a15eaa38 /mdoc_validate.c
parent5153e9ff95f0f8f3a7d46b4efd5d75801c84bab2 (diff)
downloadmandoc-72b03dec1c3cb23cc1f97c902936f91bd60b582a.tar.gz
mandoc-72b03dec1c3cb23cc1f97c902936f91bd60b582a.tar.zst
mandoc-72b03dec1c3cb23cc1f97c902936f91bd60b582a.zip
Remove enum mdocargerr from phrase() (unused).
Add `Ta' macro, which is basically a NULL case everywhere but in mdoc_macro.c, where it closes out an existing `It' body scope and opens a new one, then continues parsing as in phrase() (TODO: merge these two?). Fix where scope-breaking was silently just dying instead of printing an error. Fix where trailing `Ta' or tab weren't creating a new MDOC_BODY context. We now support arbitrarily complex `It' contents for `Bl -column'.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 6aed3c92..daf00177 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.87 2010/05/30 22:56:02 kristaps Exp $ */
+/* $Id: mdoc_validate.c,v 1.88 2010/05/31 10:28:04 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -268,6 +268,7 @@ const struct valids mdoc_valids[MDOC_MAX] = {
{ NULL, posts_notext }, /* br */
{ NULL, posts_sp }, /* sp */
{ NULL, posts_text1 }, /* %U */
+ { NULL, NULL }, /* Ta */
};