* mdocml: implement .DT in terms of .ta; needed for print/ghostview, for
@ 2017-05-07 21:45 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-05-07 21:45 UTC (permalink / raw)
To: source
Log Message:
-----------
implement .DT in terms of .ta; needed for print/ghostview, for example
Modified Files:
--------------
mdocml:
man.7
man_term.c
Revision Data
-------------
Index: man.7
===================================================================
RCS file: /home/cvs/mdocml/mdocml/man.7,v
retrieving revision 1.134
retrieving revision 1.135
diff -Lman.7 -Lman.7 -u -p -r1.134 -r1.135
--- man.7
+++ man.7
@@ -348,8 +348,12 @@ See also
and
.Sx \&IR .
.Ss \&DT
-Has no effect.
-Included for compatibility.
+Restore the default tabulator positions.
+They are at intervals of 0.5 inches.
+This has no effect unless the tabulator positions were changed with the
+.Xr roff 7
+.Ic \&ta
+request.
.Ss \&EE
This is a non-standard GNU extension, included only for compatibility.
In
Index: man_term.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/man_term.c,v
retrieving revision 1.198
retrieving revision 1.199
diff -Lman_term.c -Lman_term.c -u -p -r1.198 -r1.199
--- man_term.c
+++ man_term.c
@@ -68,6 +68,7 @@ static void print_bvspace(struct term
const struct roff_node *, int);
static int pre_B(DECL_ARGS);
+static int pre_DT(DECL_ARGS);
static int pre_HP(DECL_ARGS);
static int pre_I(DECL_ARGS);
static int pre_IP(DECL_ARGS);
@@ -117,7 +118,7 @@ static const struct termact __termacts[M
{ pre_literal, NULL, 0 }, /* fi */
{ NULL, NULL, 0 }, /* RE */
{ pre_RS, post_RS, 0 }, /* RS */
- { pre_ign, NULL, 0 }, /* DT */
+ { pre_DT, NULL, 0 }, /* DT */
{ pre_ign, NULL, MAN_NOTEXT }, /* UC */
{ pre_PD, NULL, MAN_NOTEXT }, /* PD */
{ pre_ign, NULL, 0 }, /* AT */
@@ -388,6 +389,15 @@ pre_in(DECL_ARGS)
if (p->offset > SHRT_MAX)
p->offset = term_len(p, p->defindent);
+ return 0;
+}
+
+static int
+pre_DT(DECL_ARGS)
+{
+ term_tab_set(p, NULL);
+ term_tab_set(p, "T");
+ term_tab_set(p, ".5i");
return 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:[~2017-05-07 21:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-07 21:45 mdocml: implement .DT in terms of .ta; needed for print/ghostview, for 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).