shithub: neatroff

Download patch

ref: ae11bbb7c3e0e8029ce57870e4ebbcd295b60751
parent: d93cad67e75be412c2c4a88ba5d834d7efadcf73
author: Ali Gholami Rudi <ali@rudi.ir>
date: Mon Sep 15 06:08:45 EDT 2014

cp: skip all of the spaces after .if's open brace

This should handle:
  .if 1 \{ .X
  .\}
Reported by Carsten Kunze <carsten.kunze@arcor.de>.

--- a/cp.c
+++ b/cp.c
@@ -235,7 +235,7 @@
 			c = cp_raw();
 	} else {
 		int c = cp_next();
-		while ((c == ' ' || c == '\t') && cp_blkdep <= cp_reqdep)
+		while ((c == ' ' || c == '\t'))
 			c = cp_next();
 		/* push back if the space is not inserted because of cp_reqln */
 		if (c != ' ' && c != '\t')