* mdocml: implement the tbl(7) "allbox" option; used for example by
@ 2017-06-12 20:45 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-06-12 20:45 UTC (permalink / raw)
To: source
Log Message:
-----------
implement the tbl(7) "allbox" option;
used for example by curs_getch(3) and GLwDrawingArea(3)
Modified Files:
--------------
mdocml:
tbl_term.c
Revision Data
-------------
Index: tbl_term.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/tbl_term.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -Ltbl_term.c -Ltbl_term.c -u -p -r1.48 -r1.49
--- tbl_term.c
+++ tbl_term.c
@@ -242,6 +242,8 @@ term_tbl(struct termp *tp, const struct
cp = cp->next;
} else
vert = 0;
+ if (sp->opts->opts & TBL_OPT_ALLBOX)
+ vert = 1;
if (vert == 0)
continue;
@@ -300,7 +302,9 @@ term_tbl(struct termp *tp, const struct
free(tp->tbl.cols);
tp->tbl.cols = NULL;
tp->tcol->offset = offset;
- }
+ } else if (horiz == 0 && sp->opts->opts & TBL_OPT_ALLBOX)
+ tbl_hrule(tp, sp, 1);
+
tp->flags &= ~TERMP_NONOSPACE;
}
@@ -336,6 +340,8 @@ tbl_hrule(struct termp *tp, const struct
vert = c2->vert;
c2 = c2->next;
}
+ if (sp->opts->opts & TBL_OPT_ALLBOX && !vert)
+ vert = 1;
if (vert)
tbl_char(tp, cross, vert);
if (vert < 2)
--
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-06-12 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-12 20:45 mdocml: implement the tbl(7) "allbox" option; used for example by 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).