Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/mdocml/dist Move the character table initialisa...
details: https://anonhg.NetBSD.org/src/rev/7268a12f74e5
branches: trunk
changeset: 755700:7268a12f74e5
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Jun 17 00:56:03 2010 +0000
description:
Move the character table initialisation a bit earlier for man pages that
contain special characters in the header. From upstream.
diffstat:
external/bsd/mdocml/dist/man_term.c | 3 +--
external/bsd/mdocml/dist/mdoc_term.c | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r 67651491d35a -r 7268a12f74e5 external/bsd/mdocml/dist/man_term.c
--- a/external/bsd/mdocml/dist/man_term.c Wed Jun 16 22:26:56 2010 +0000
+++ b/external/bsd/mdocml/dist/man_term.c Thu Jun 17 00:56:03 2010 +0000
@@ -159,8 +159,6 @@
p->overstep = 0;
p->maxrmargin = p->defrmargin;
- term_begin(p, print_man_head, print_man_foot, man_meta(man));
-
if (NULL == p->symtab)
switch (p->enc) {
case (TERMENC_ASCII):
@@ -174,6 +172,7 @@
n = man_node(man);
m = man_meta(man);
+ term_begin(p, print_man_head, print_man_foot, man_meta(man));
p->flags |= TERMP_NOSPACE;
mt.fl = 0;
diff -r 67651491d35a -r 7268a12f74e5 external/bsd/mdocml/dist/mdoc_term.c
--- a/external/bsd/mdocml/dist/mdoc_term.c Wed Jun 16 22:26:56 2010 +0000
+++ b/external/bsd/mdocml/dist/mdoc_term.c Thu Jun 17 00:56:03 2010 +0000
@@ -276,8 +276,6 @@
p->maxrmargin = p->defrmargin;
p->tabwidth = 5;
- term_begin(p, print_mdoc_head, print_foot, mdoc_meta(mdoc));
-
if (NULL == p->symtab)
switch (p->enc) {
case (TERMENC_ASCII):
@@ -291,6 +289,8 @@
n = mdoc_node(mdoc);
m = mdoc_meta(mdoc);
+ term_begin(p, print_mdoc_head, print_foot, mdoc_meta(mdoc));
+
if (n->child)
print_mdoc_nodelist(p, NULL, m, n->child);
Home |
Main Index |
Thread Index |
Old Index