From 7585ce47e0934f9b0eabd76bf7000d02950e6e1c Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 17 May 2011 13:11:40 +0000 Subject: In tbl layouts, we puked if a space didn't followed a vertical bar (found by Yuri Pankov). This was due to looking for modifiers for the vertical bar. This has been fixed, along with other special-key layout types. --- tbl_layout.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tbl_layout.c b/tbl_layout.c index 8dd35484..b6f45f43 100644 --- a/tbl_layout.c +++ b/tbl_layout.c @@ -72,6 +72,23 @@ mods(struct tbl_node *tbl, struct tbl_cell *cp, char buf[5]; int i; + /* Not all types accept modifiers. */ + + switch (cp->pos) { + case (TBL_CELL_DOWN): + /* FALLTHROUGH */ + case (TBL_CELL_HORIZ): + /* FALLTHROUGH */ + case (TBL_CELL_DHORIZ): + /* FALLTHROUGH */ + case (TBL_CELL_VERT): + /* FALLTHROUGH */ + case (TBL_CELL_DVERT): + return(1); + default: + break; + } + mod: /* * XXX: since, at least for now, modifiers are non-conflicting -- cgit