summaryrefslogtreecommitdiffstats
path: root/mlg.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-05 22:34:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-05 22:34:30 +0000
commitd6d6f5e42f2444e9f1979336cacb89b0a8d585b5 (patch)
treec6a9727e3c0649b790a55a6723a5ba63b10be2cd /mlg.c
parenta615ddd77b9fc44ac7ffab361ab156b46fd896c6 (diff)
downloadmandoc-d6d6f5e42f2444e9f1979336cacb89b0a8d585b5.tar.gz
Nm works properly, many other changes, etc.
Diffstat (limited to 'mlg.c')
-rw-r--r--mlg.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mlg.c b/mlg.c
index 2ba7101b..8be61e3e 100644
--- a/mlg.c
+++ b/mlg.c
@@ -447,6 +447,17 @@ mlg_roffspecial(void *arg, int tok, const char *start, char **more)
return(0);
break;
case (ROFF_Fn):
+ abort(); /* TODO */
+ break;
+ case (ROFF_Nm):
+ assert(*more);
+ if ( ! mlg_begintag(p, MD_NS_INLINE, tok, NULL, NULL))
+ return(0);
+ if ( ! ml_puts(p->mbuf, *more++, &p->pos))
+ return(0);
+ assert(NULL == *more);
+ if ( ! mlg_endtag(p, MD_NS_INLINE, tok))
+ return(0);
break;
case (ROFF_Ns):
p->flags |= ML_OVERRIDE_ONE;