* mdocml: Have `Fd' detection in mandoc-db also look for local includes
@ 2011-04-04 16:49 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-04-04 16:49 UTC (permalink / raw)
To: source
Log Message:
-----------
Have `Fd' detection in mandoc-db also look for local includes (i.e.,
those that are quoted and not angular-bracketed).
Modified Files:
--------------
mdocml:
mandoc-db.c
Revision Data
-------------
Index: mandoc-db.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc-db.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lmandoc-db.c -Lmandoc-db.c -u -p -r1.4 -r1.5
--- mandoc-db.c
+++ 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';
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-04 16:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-04 16:49 mdocml: Have `Fd' detection in mandoc-db also look for local includes kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).