aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-29 14:53:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-29 14:53:14 +0000
commit319d06106e51d11bd2327a59bb1d12d09985421e (patch)
tree7c569f6c6f58f39368d068a473af972d1df85c40 /main.c
parent2bd10d07080a87c7b6d1e64efa941615ce7144b9 (diff)
downloadmandoc-319d06106e51d11bd2327a59bb1d12d09985421e.tar.gz
mandoc-319d06106e51d11bd2327a59bb1d12d09985421e.tar.zst
mandoc-319d06106e51d11bd2327a59bb1d12d09985421e.zip
Add in -Opaper=xxx support for -Tps postscript. This doesn't have any
functional changes beyond the getsubopt() parse in term_ps.c. If you want to test this (it only does -Opaper=a4 and -Opaper=letter; adding more is trivial), make sure you specify (e.g.) -sPAPERSIZE=a4 to gs(1).
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 469dc2ef..f82ef84a 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.92 2010/06/27 15:52:41 kristaps Exp $ */
+/* $Id: main.c,v 1.93 2010/06/29 14:53:14 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -599,7 +599,7 @@ fdesc(struct curparse *curp)
curp->outfree = ascii_free;
break;
case (OUTT_PS):
- curp->outdata = ps_alloc();
+ curp->outdata = ps_alloc(curp->outopts);
curp->outfree = ps_free;
break;
default: