From a7ddb6ec4103182af944faf6e8eab831579a19ba Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 14 Oct 2014 02:16:06 +0000 Subject: Rudimentary implementation of the e, x, and z table layout modifiers to equalize, maximize, and ignore the width of columns. Does not yet take vertical rulers into account, and does not do line breaks within table cells. Considerably improves the lftp(1) manual; issue noticed by sthen@. --- tbl_layout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tbl_layout.c') diff --git a/tbl_layout.c b/tbl_layout.c index 3d27ee1a..71078a9d 100644 --- a/tbl_layout.c +++ b/tbl_layout.c @@ -1,4 +1,4 @@ -/* $Id: tbl_layout.c,v 1.28 2014/10/07 14:07:03 schwarze Exp $ */ +/* $Id: tbl_layout.c,v 1.29 2014/10/14 02:16:06 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2012, 2014 Ingo Schwarze @@ -168,6 +168,9 @@ mod: goto mod; case 'w': /* XXX for now, ignore minimal column width */ goto mod; + case 'x': + cp->flags |= TBL_CELL_WMAX; + goto mod; case 'f': break; case 'r': -- cgit v1.2.3-56-ge451