From 8df3bd8aa2e86cd7c2b579bfdf2f9fb34bfad73e Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 4 Apr 2011 16:49:03 +0000 Subject: Have `Fd' detection in mandoc-db also look for local includes (i.e., those that are quoted and not angular-bracketed). --- mandoc-db.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mandoc-db.c') diff --git a/mandoc-db.c b/mandoc-db.c index 7af58beb..0c66efaf 100644 --- a/mandoc-db.c +++ b/mandoc-db.c @@ -1,4 +1,4 @@ -/* $Id: mandoc-db.c,v 1.4 2011/04/04 10:53:15 kristaps Exp $ */ +/* $Id: mandoc-db.c,v 1.5 2011/04/04 16:49:03 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -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'; -- cgit v1.2.3-56-ge451