* mdocml: In the SYNOPSIS, .Nm at the beginning of an input line starts an
@ 2010-07-21 21:55 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2010-07-21 21:55 UTC (permalink / raw)
To: source
Log Message:
-----------
In the SYNOPSIS, .Nm at the beginning of an input line starts
an .Nm block, and gets special handling (new line, indentation).
But .Nm in the middle of a line is just a normal in-line element,
so make sure it does NOT get the special handling.
Partly fixes the test(1) SYNOPSIS; indentation after "[" is still
excessive, which is an unrelated and more difficult issue.
Reminded of the problem by jmc@;
OK kristaps@.
Modified Files:
--------------
mdocml:
mdoc_term.c
Revision Data
-------------
Index: mdoc_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v
retrieving revision 1.176
retrieving revision 1.177
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.176 -r1.177
--- mdoc_term.c
+++ mdoc_term.c
@@ -1026,7 +1026,8 @@ termp_nm_pre(DECL_ARGS)
if (NULL == n->child && NULL == m->name)
return(0);
- synopsis_pre(p, n);
+ if (MDOC_HEAD == n->type)
+ synopsis_pre(p, n->parent);
if (MDOC_HEAD == n->type && n->next->child) {
p->flags |= TERMP_NOSPACE | TERMP_NOBREAK | TERMP_HANG;
--
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:[~2010-07-21 21:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-21 21:55 mdocml: In the SYNOPSIS, .Nm at the beginning of an input line starts an 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).