From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p4HDBfIv004428 for ; Tue, 17 May 2011 09:11:41 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p4HDBex7011956; Tue, 17 May 2011 09:11:40 -0400 (EDT) Date: Tue, 17 May 2011 09:11:40 -0400 (EDT) Message-Id: <201105171311.p4HDBex7011956@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: In tbl layouts, we puked if a space didn't followed a vertical X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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. Modified Files: -------------- mdocml: tbl_layout.c Revision Data ------------- Index: tbl_layout.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/tbl_layout.c,v retrieving revision 1.19 retrieving revision 1.20 diff -Ltbl_layout.c -Ltbl_layout.c -u -p -r1.19 -r1.20 --- tbl_layout.c +++ tbl_layout.c @@ -72,6 +72,23 @@ mods(struct tbl_node *tbl, struct tbl_ce 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 -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv