shithub: neatroff

Download patch

ref: ed1a68194ee61d0a6e2ee6a96189403c6daaea9b
parent: 61b5569424ac26cfb990e9aef1027bd2fbf82ee5
author: Ali Gholami Rudi <[email protected]>
date: Fri Jul 3 14:27:08 EDT 2015

cp: do not skip tabs after .if condition

Reported by Dirk-Wilhelm Peters <[email protected]>.

--- a/cp.c
+++ b/cp.c
@@ -242,10 +242,10 @@
 			c = cp_raw();
 	} else {
 		int c = cp_next();
-		while ((c == ' ' || c == '\t'))
+		while (c == ' ')
 			c = cp_next();
 		/* push back if the space is not inserted due to \{ and \} */
-		if (c != ' ' && c != '\t')
+		if (c != ' ')
 			cp_back(c);
 	}
 }