* mdocml: Make -literal displays only have 8-character displays.
@ 2011-01-06 14:05 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-01-06 14:05 UTC (permalink / raw)
To: source
Log Message:
-----------
Make -literal displays only have 8-character displays. From a
low-hanging TODO added by schwarze@ on 15/08/10.
Modified Files:
--------------
mdocml:
TODO
mdoc_term.c
Revision Data
-------------
Index: TODO
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/TODO,v
retrieving revision 1.72
retrieving revision 1.73
diff -LTODO -LTODO -u -p -r1.72 -r1.73
--- TODO
+++ TODO
@@ -152,11 +152,6 @@
Also have `It' complain if `Pp' is invoked at certain times (not
-compact?).
-- .Bd -literal and .Bd -unfilled are *not* identical.
- In -literal, tabs are 8 spaces.
- In -unfilled, tabs are 5 spaces, just like in -filled and -ragged.
- See the CCDF_* display in OpenBSD ccdconfig(8).
-
- .Nx 1.0a
should be "NetBSD 1.0A", not "NetBSD 1.0a",
see OpenBSD ccdconfig(8).
Index: mdoc_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v
retrieving revision 1.207
retrieving revision 1.208
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.207 -r1.208
--- mdoc_term.c
+++ mdoc_term.c
@@ -1599,7 +1599,9 @@ termp_bd_pre(DECL_ARGS)
return(1);
tabwidth = p->tabwidth;
- p->tabwidth = term_len(p, 8);
+ if (DISP_literal == n->norm->Bd.type)
+ p->tabwidth = term_len(p, 8);
+
rm = p->rmargin;
rmax = p->maxrmargin;
p->rmargin = p->maxrmargin = TERM_MAXMARGIN;
--
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-01-06 14:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-06 14:05 mdocml: Make -literal displays only have 8-character displays 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).