diff options
author | 2010-05-20 00:58:02 +0000 | |
---|---|---|
committer | 2010-05-20 00:58:02 +0000 | |
commit | 62d9ccdb5cd4508f39f09940ef04620cc2fa0244 (patch) | |
tree | 6fc1c7ef02fdf31da880a34ea3faf200754cf38f /usr.bin/mandoc/man_html.c | |
parent | New scsi code seems to be stable. Pluck previously identified (diff) | |
download | wireguard-openbsd-62d9ccdb5cd4508f39f09940ef04620cc2fa0244.tar.xz wireguard-openbsd-62d9ccdb5cd4508f39f09940ef04620cc2fa0244.zip |
Support nested roff instructions:
* allow roff_parseln() to be re-run
* allow roff_parseln() to manipulate the line buffer offset
* support the offset in the man and mdoc libraries
* adapt .if, .ie, .el, .ig, .am* and .de* support
* interpret some instructions even in conditional-negative context
Coded by kristaps during the last day of the mandoc hackathon.
To avoid regressions in the OpenBSD tree, commit this together
with some small local additions:
* detect roff block end "\}" even on macro lines
* actually implement the ".if n" conditional
* ignore .ds, .rm and .tr in libroff
Also back my old .if/.ie/.el-handling out of libman, reverting:
man.h 1.15 man.c 1.25 man_macro.c 1.15 man_validate.c 1.19
man_action.c 1.15 man_term.c 1.28 man_html.c 1.9.
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r-- | usr.bin/mandoc/man_html.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c index 74ee0935395..2ca3471f540 100644 --- a/usr.bin/mandoc/man_html.c +++ b/usr.bin/mandoc/man_html.c @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.11 2010/05/16 00:54:03 schwarze Exp $ */ +/* $Id: man_html.c,v 1.12 2010/05/20 00:58:02 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -102,9 +102,6 @@ static const struct htmlman mans[MAN_MAX] = { { man_br_pre, NULL }, /* Sp */ { man_ign_pre, NULL }, /* Vb */ { NULL, NULL }, /* Ve */ - { NULL, NULL }, /* if */ - { NULL, NULL }, /* ie */ - { NULL, NULL }, /* el */ }; |