source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: In tbl layouts, we puked if a space didn't followed a vertical
@ 2011-05-17 13:11 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-05-17 13:11 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-17 13:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-17 13:11 mdocml: In tbl layouts, we puked if a space didn't followed a vertical kristaps

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).