shithub: neatroff

Download patch

ref: ab48d1d575b06c3996847357dc26aec1cd688c53
parent: 2ee5253d1d503d7a4df868624a44447ac6e0e414
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat Aug 30 14:39:53 EDT 2014

roff: try x for -mx if both x.tmac and tmac.x are missing

--- a/roff.c
+++ b/roff.c
@@ -69,6 +69,8 @@
 			sprintf(path, "%s/%s.tmac", macrodir, argv[i] + 2);
 			if (!xopens(path))
 				sprintf(path, "%s/tmac.%s", macrodir, argv[i] + 2);
+			if (!xopens(path))
+				sprintf(path, "%s/%s", macrodir, argv[i] + 2);
 			in_queue(path);
 			break;
 		case 'F':