aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-26 08:50:29 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-26 08:50:29 -0700
commitdc572e8a250e7561e39286fda94d7c315f6331a0 (patch)
tree7b6431912dc248845aa437c71af27cc1d001d128 /src
parent1847335b1dbb2ec92e0accabbf340979db3e7697 (diff)
downloadpandoc-dc572e8a250e7561e39286fda94d7c315f6331a0.tar.gz
Always preserve tabs for man format.
We need it for tables.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/App.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs
index 9c830c85c..2fb7c92db 100644
--- a/src/Text/Pandoc/App.hs
+++ b/src/Text/Pandoc/App.hs
@@ -287,7 +287,9 @@ convertWithOpts opts = do
"Specify an output file using the -o option, or " ++
"use '-o -' to force output to stdout."
- let convertTabs = tabFilter (if optPreserveTabs opts || readerName == "t2t"
+ let convertTabs = tabFilter (if optPreserveTabs opts ||
+ readerName == "t2t" ||
+ readerName == "man"
then 0
else optTabStop opts)