diff options
author | 2018-11-25 19:24:20 +0000 | |
---|---|---|
committer | 2018-11-25 19:24:20 +0000 | |
commit | e30a05d61589276c015f65e4ac75df70040c3808 (patch) | |
tree | cd0e6ceb3acaf39d7cd2796c21ac8750850a8e15 /mandoc.h | |
parent | 06e66f94d3ea6bc0665d39bb5f02c2acb54c0cc1 (diff) | |
download | mandoc-e30a05d61589276c015f65e4ac75df70040c3808.tar.gz mandoc-e30a05d61589276c015f65e4ac75df70040c3808.tar.zst mandoc-e30a05d61589276c015f65e4ac75df70040c3808.zip |
In tbl(7) -T html output,
span cells horizontally and vertically as requested by the layout.
Does not handle spans requested in the data section yet.
To be able to do this, record the number of rows spanned
in the first data cell (struct tbl_dat) of a vertical span.
Missing feature reported by Pali dot Rohar at gmail dot com.
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.254 2018/10/25 01:32:40 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.255 2018/11/25 19:24:20 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org> @@ -320,7 +320,8 @@ struct tbl_dat { struct tbl_cell *layout; /* layout cell */ struct tbl_dat *next; char *string; /* data (NULL if not TBL_DATA_DATA) */ - int spans; /* how many spans follow */ + int hspans; /* how many horizontal spans follow */ + int vspans; /* how many vertical spans follow */ int block; /* T{ text block T} */ enum tbl_datt pos; }; |