summaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-07 10:52:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-07 10:52:44 +0000
commit82cd5e1a1b788d7b87b54cabf8843606475da964 (patch)
tree9577d3959d01c94af1d4c069e3c948ba92a3cd98 /main.c
parent33883780dab2d66bcefd61599b61e4947f88a2db (diff)
downloadmandoc-82cd5e1a1b788d7b87b54cabf8843606475da964.tar.gz
mandoc-82cd5e1a1b788d7b87b54cabf8843606475da964.tar.zst
mandoc-82cd5e1a1b788d7b87b54cabf8843606475da964.zip
Add -Owidth=width option to mandoc -Tascii. Asked for by joerg@ about a
thousand years ago. Note that this is normalised to >=60.
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 313a1679..b6a13f6e 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.83 2010/06/06 20:44:53 joerg Exp $ */
+/* $Id: main.c,v 1.84 2010/06/07 10:52:44 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -601,7 +601,7 @@ fdesc(struct curparse *curp)
case (OUTT_LINT):
break;
default:
- curp->outdata = ascii_alloc(80);
+ curp->outdata = ascii_alloc(curp->outopts);
curp->outman = terminal_man;
curp->outmdoc = terminal_mdoc;
curp->outfree = terminal_free;