shithub: neatpost

Download patch

ref: 17faf86c9b8f563e873b44246810085da1806837
parent: 17553ce3f38ea54a68da3cb2f2f12e97fdbfc032
author: Ali Gholami Rudi <ali@rudi.ir>
date: Thu Oct 26 19:27:30 EDT 2017

out: put a space after specifying link rectangle

--- a/out.c
+++ b/out.c
@@ -339,13 +339,13 @@
 		return;
 	o_flush();
 	if (lnk[0] == '#' || isdigit((unsigned char) lnk[0])) {
-		outf("[ /Rect [ %d %d t %d %d t ] %s%s"
+		outf("[ /Rect [ %d %d t %d %d t ] %s%s "
 			"/Subtype /Link /LNK pdfmark\n",
 			o_h, o_v, o_h + hwid, o_v + vwid,
 			lnk[0] == '#' ? "/Dest /" : "/Page ",
 			lnk[0] == '#' ? lnk + 1 : lnk);
 	} else {
-		outf("[ /Rect [ %d %d t %d %d t ]"
+		outf("[ /Rect [ %d %d t %d %d t ] "
 			"/Action << /Subtype /URI /URI (%s) >> /Open true "
 			"/Subtype /Link /LNK pdfmark\n",
 			o_h, o_v, o_h + hwid, o_v + vwid, lnk);