From 47cdaf0fdadf72cb7aba9bfecf789e29e518c79b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 1 Jun 2010 11:47:28 +0000 Subject: Fixed condition of `\}' closing a conditional at the start of the line. Fixed flushed-out condition of \} causing subsequent arguments to be truncated, when in fact the whole line should be passed through (if the conditional succeeds) to the front-end and the \} ignored there. Added regression test of this behaviour. --- mandoc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mandoc.c') diff --git a/mandoc.c b/mandoc.c index f1ac7c9a..83743b31 100644 --- a/mandoc.c +++ b/mandoc.c @@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.16 2010/05/25 12:37:20 kristaps Exp $ */ +/* $Id: mandoc.c,v 1.17 2010/06/01 11:47:28 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -61,6 +61,8 @@ mandoc_special(const char *p) /* FALLTHROUGH */ case (' '): /* FALLTHROUGH */ + case ('}'): + /* FALLTHROUGH */ case ('|'): /* FALLTHROUGH */ case ('&'): -- cgit v1.2.3