diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-17 20:54:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-10-17 20:54:58 +0000 |
commit | a24894c279cda3d965668a3548d070489a8aceed (patch) | |
tree | 802cd2c3ea9060f30b957ad4a052608a76fe9b4a /man_macro.c | |
parent | 9680b7282e62aa4b1c49f8ee927df097cbe37246 (diff) | |
download | mandoc-a24894c279cda3d965668a3548d070489a8aceed.tar.gz |
Implement the .UR/.UE block (uniform resource identifier) introduced in the
man-ext macros by Eric S. Raymond, enabled by default in groff_man(7).
Usual disclaimer: You don't write new man(7) code, so you are not going
to use these, either.
Improves e.g. the bzr(1) and etherape(1) manuals.
Thanks to naddy@ for bringing these to my attention.
Diffstat (limited to 'man_macro.c')
-rw-r--r-- | man_macro.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/man_macro.c b/man_macro.c index ab252b83..18eedbcb 100644 --- a/man_macro.c +++ b/man_macro.c @@ -88,6 +88,8 @@ const struct man_macro __man_macros[MAN_MAX] = { { in_line_eoln, 0 }, /* OP */ { in_line_eoln, MAN_BSCOPE }, /* EX */ { in_line_eoln, MAN_BSCOPE }, /* EE */ + { blk_exp, MAN_BSCOPE | MAN_EXPLICIT }, /* UR */ + { blk_close, 0 }, /* UE */ }; const struct man_macro * const man_macros = __man_macros; @@ -284,6 +286,9 @@ blk_close(MACRO_PROT_ARGS) case (MAN_RE): ntok = MAN_RS; break; + case (MAN_UE): + ntok = MAN_UR; + break; default: abort(); /* NOTREACHED */ |