shithub: neatroff

Download patch

ref: 3b3716caae3e4a5817633afdd6c0f8565840fceb
parent: 0b23d0b4a41bedb9d9b00bcef9c0b6414c4ef287
author: Ali Gholami Rudi <ali@rudi.ir>
date: Thu Mar 28 12:47:55 EDT 2013

out: \v vertical movement escape

--- a/out.c
+++ b/out.c
@@ -92,7 +92,7 @@
 			if (c[0] == '(') {
 				s = utf8get(c, s);
 				s = utf8get(c + strlen(c), s);
-			} else if (strchr("sfh", c[0])) {
+			} else if (strchr("sfhv", c[0])) {
 				s = escarg(s, arg, c[0]);
 				if (c[0] == 's') {
 					out_ps(tr_int(arg, o_s, '\0'));
@@ -104,6 +104,10 @@
 				}
 				if (c[0] == 'h') {
 					OUT("h%d", tr_int(arg, 0, 'm'));
+					continue;
+				}
+				if (c[0] == 'v') {
+					OUT("v%d", tr_int(arg, 0, 'm'));
 					continue;
 				}
 			}