source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Always fix the man(7) subsection header (.SS) indent to 3n, do
@ 2012-07-16 21:59 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2012-07-16 21:59 UTC (permalink / raw)
  To: source

Log Message:
-----------
Always fix the man(7) subsection header (.SS) indent to 3n,
do not let it depend on the default indent provided by -Oindent. 
By default, this doesn't change anything because 7 / 2 = 3;
in -Omdoc mode, it makes man(7) output the same as mdoc(7) output.
OpenBSD rev. 1.87

Modified Files:
--------------
    mdocml:
        man_term.c

Revision Data
-------------
Index: man_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_term.c,v
retrieving revision 1.132
retrieving revision 1.133
diff -Lman_term.c -Lman_term.c -u -p -r1.132 -r1.133
--- man_term.c
+++ man_term.c
@@ -771,7 +771,7 @@ pre_SS(DECL_ARGS)
 		break;
 	case (MAN_HEAD):
 		term_fontrepl(p, TERMFONT_BOLD);
-		p->offset = term_len(p, p->defindent/2);
+		p->offset = term_len(p, 3);
 		break;
 	case (MAN_BODY):
 		p->offset = mt->offset;
--
 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:[~2012-07-16 21:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-16 21:59 mdocml: Always fix the man(7) subsection header (.SS) indent to 3n, do 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).