summaryrefslogtreecommitdiffstats
path: root/mandoc-db.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-04 16:49:03 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-04 16:49:03 +0000
commit712f9b074eead391a808fd7ebfbfecc4a54e92af (patch)
tree0fb7d88897efbe0eaf7c3e0c54d9695ac561e004 /mandoc-db.c
parentd5a7714d266d3c899764ccc8fed227d6c2c98f32 (diff)
downloadmandoc-712f9b074eead391a808fd7ebfbfecc4a54e92af.tar.gz
Have `Fd' detection in mandoc-db also look for local includes (i.e.,
those that are quoted and not angular-bracketed).
Diffstat (limited to 'mandoc-db.c')
-rw-r--r--mandoc-db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandoc-db.c b/mandoc-db.c
index 1a3db9e8..72ef1448 100644
--- a/mandoc-db.c
+++ b/mandoc-db.c
@@ -458,14 +458,14 @@ pmdoc_Fd(MDOC_ARGS)
*/
start = n->string;
- if ('<' == *start)
+ if ('<' == *start || '"' == *start)
start++;
if (0 == (sz = strlen(start)))
return;
end = &start[(int)sz - 1];
- if ('>' == *end)
+ if ('>' == *end || '"' == *end)
end--;
nil = '\0';