shithub: neatpost

Download patch

ref: 7d942f01f10c6b44bf5012f73c36a83af35e3b4b
parent: 80d35921d39896b247ddcdf15ead5a0b2a028aba
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Sep 26 06:47:16 EDT 2014

post: skip the rest of the line after unknown requests

--- a/post.c
+++ b/post.c
@@ -321,6 +321,7 @@
 		break;
 	default:
 		fprintf(stderr, "neatpost: unknown command %c\n", c);
+		nexteol();
 	}
 }
 
@@ -387,7 +388,7 @@
 	"Usage: neatpost [options] <input >output\n"
 	"Options:\n"
 	"  -F dir  \tset font directory (" TROFFFDIR ")\n"
-	"  -p size \tset paper size; e.g., a4, letter, 2100x2970 (letter)\n"
+	"  -p size \tset paper size (letter); e.g., a4, 2100x2970\n"
 	"  -w lwid \tdrawing line thickness in thousandths of an em (40)\n";
 
 int main(int argc, char *argv[])