diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-07-22 03:21:49 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-07-22 03:21:49 +0000 |
commit | 4fdfa8d931262ec6f10a5b0be980b235796cd3f7 (patch) | |
tree | 5be480132255102505d77817a09ed44cd06d5f2c /tag.c | |
parent | a523088e937ba170e198c1080112d6bfab51a27c (diff) | |
download | mandoc-4fdfa8d931262ec6f10a5b0be980b235796cd3f7.tar.gz |
Slowly start implementing tagging support for man(7) pages, even
though it is obvious that this can never become as good as for
mdoc(7) pages. As a first step, tag alphabetic arguments of .IP
macros, which are often used for lists of options and keywords.
Try "man -O tag=g as" to get the point.
Thanks to Leah Neukirchen for recently reminding me that exploring
how much can be done in this respect may be worthwhile: it is likely
to slightly improve usability while adding only small amounts of
relatively straightforward code.
Diffstat (limited to 'tag.c')
-rw-r--r-- | tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -151,11 +151,11 @@ tag_put(const char *s, int prio, size_t line) s += 2; /* - * Skip whitespace and whatever follows it, + * Skip whitespace and escapes and whatever follows, * and if there is any, downgrade the priority. */ - len = strcspn(s, " \t"); + len = strcspn(s, " \t\\"); if (len == 0) return; |