summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-05 17:57:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-05 17:57:07 +0000
commit1d26ffbd16140a752b2adcc259c2957382a4becc (patch)
tree4376afeeb0ff4b134e234bb994faefca1ba5dc19 /mdoc.c
parent15ff2c88b54b3a9deb82db8f12168847c99a1904 (diff)
downloadmandoc-1d26ffbd16140a752b2adcc259c2957382a4becc.tar.gz
mandoc-1d26ffbd16140a752b2adcc259c2957382a4becc.tar.zst
mandoc-1d26ffbd16140a752b2adcc259c2957382a4becc.zip
*** empty log message ***
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mdoc.c b/mdoc.c
index 876e773c..3781f0c0 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.17 2009/01/05 16:11:14 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.18 2009/01/05 17:57:08 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -107,7 +107,7 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
{ macro_text, MDOC_CALLABLE }, /* Er */
{ macro_text, MDOC_CALLABLE }, /* Ev */
{ macro_constant, 0 }, /* Ex */
- { macro_text, MDOC_CALLABLE }, /* Fa */
+ { macro_text, MDOC_CALLABLE | MDOC_QUOTABLE }, /* Fa */
{ macro_constant, 0 }, /* Fd */
{ macro_text, MDOC_CALLABLE }, /* Fl */
{ macro_text, MDOC_CALLABLE | MDOC_QUOTABLE }, /* Fn */
@@ -168,7 +168,7 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
{ macro_scoped_line, MDOC_CALLABLE }, /* Ql */
{ macro_constant_scoped, MDOC_CALLABLE }, /* Qo */
{ macro_scoped_line, MDOC_CALLABLE }, /* Qq */
- { macro_scoped, MDOC_EXPLICIT }, /* Re */
+ { macro_close_explicit, 0 }, /* Re */
{ macro_scoped, MDOC_EXPLICIT }, /* Rs */
{ macro_close_explicit, MDOC_CALLABLE }, /* Sc */
{ macro_constant_scoped, MDOC_CALLABLE }, /* So */
@@ -252,6 +252,8 @@ mdoc_parseln(struct mdoc *mdoc, char *buf)
char tmp[5];
if ('.' != *buf) {
+ if (SEC_PROLOGUE == mdoc->sec_lastn)
+ return(mdoc_err(mdoc, -1, 0, ERR_SYNTAX_NOTEXT));
mdoc_word_alloc(mdoc, 0, buf);
mdoc->next = MDOC_NEXT_SIBLING;
return(1);