From 4fdfa8d931262ec6f10a5b0be980b235796cd3f7 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 22 Jul 2019 03:21:49 +0000 Subject: 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. --- tag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tag.c') diff --git a/tag.c b/tag.c index edff5064..762d35bc 100644 --- a/tag.c +++ b/tag.c @@ -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; -- cgit