* mdocml: Tolerate bare tabs in SYNOPSIS .Cd for now.
@ 2017-01-08 2:01 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-01-08 2:01 UTC (permalink / raw)
To: source
Log Message:
-----------
Tolerate bare tabs in SYNOPSIS .Cd for now.
It's used in half a dozen pages.
Even though i have been thinking about it for years,
i still can't suggest anything better.
The false positives are annoying.
Modified Files:
--------------
mdocml:
mdoc_validate.c
Revision Data
-------------
Index: mdoc_validate.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mdoc_validate.c,v
retrieving revision 1.311
retrieving revision 1.312
diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.311 -r1.312
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -297,7 +297,8 @@ mdoc_node_validate(struct roff_man *mdoc
mdoc->next = ROFF_NEXT_SIBLING;
switch (n->type) {
case ROFFT_TEXT:
- if (n->sec != SEC_SYNOPSIS || n->parent->tok != MDOC_Fd)
+ if (n->sec != SEC_SYNOPSIS ||
+ (n->parent->tok != MDOC_Cd && n->parent->tok != MDOC_Fd))
check_text(mdoc, n->line, n->pos, n->string);
break;
case ROFFT_EQN:
--
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:[~2017-01-08 2:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-08 2:01 mdocml: Tolerate bare tabs in SYNOPSIS .Cd for now schwarze
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).