source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: If a tbl(7) layout contains a 'w' (minimum width) modifier for a
@ 2017-06-12 22:06 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-06-12 22:06 UTC (permalink / raw)
  To: source

Log Message:
-----------
If a tbl(7) layout contains a 'w' (minimum width) modifier for a 
given column, that column contains no literal or numeric cell of
larger width, and all text block cells in that column can be line
wrapped to fit into that minimum width, groff does not increase
that column width beyond the specified minimum: so do the same.

Modified Files:
--------------
    mdocml:
        out.c

Revision Data
-------------
Index: out.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/out.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -Lout.c -Lout.c -u -p -r1.66 -r1.67
--- out.c
+++ out.c
@@ -157,8 +157,9 @@ tblcalc(struct rofftbl *tbl, const struc
 			if (col->width < dp->layout->width)
 				col->width = dp->layout->width;
 			tblcalc_data(tbl, col, opts, dp,
-			    rmargin && dp->block ?
-			    rmargin / (sp->opts->cols + 1) : 0);
+			    dp->block == 0 ? 0 :
+			    dp->layout->width ? dp->layout->width :
+			    rmargin ? rmargin / (sp->opts->cols + 1) : 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-06-12 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-12 22:06 mdocml: If a tbl(7) layout contains a 'w' (minimum width) modifier for a 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).