summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mandoc-db.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/mandoc-db.c b/mandoc-db.c
index d8f2ce29..6a52e504 100644
--- a/mandoc-db.c
+++ b/mandoc-db.c
@@ -871,6 +871,7 @@ pman_node(MAN_ARGS)
/*
* Go through a special heuristic dance here.
* This is why -man manuals are great!
+ * (I'm being sarcastic: my eyes are bleeding.)
* Conventionally, one or more manual names are
* comma-specified prior to a whitespace, then a
* dash, then a description. Try to puzzle out
@@ -908,10 +909,14 @@ pman_node(MAN_ARGS)
while (' ' == *start)
start++;
- if ('\\' == *start && '-' == *(start + 1))
+ if (0 == strncmp(start, "-", 1))
+ start += 1;
+ else if (0 == strncmp(start, "\\-", 2))
start += 2;
- else if ('-' == *start)
- start++;
+ else if (0 == strncmp(start, "\\(en", 4))
+ start += 4;
+ else if (0 == strncmp(start, "\\(em", 4))
+ start += 4;
while (' ' == *start)
start++;