summaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-12-12 20:09:14 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-17 13:39:17 -0800
commit543aa28c3895d4dc7d3d659b652237efb41661b0 (patch)
treef3186cc78a5235d0ead022ca0a5abed2c7a5ace0 /pandoc.cabal
parent2a075e9d7a31303efa823f1779c2b32f9fb8a14f (diff)
Added new prettyprinting module.
* Added Text.Pandoc.Pretty. This is better suited for pandoc than the 'pretty' package. One advantage is that we now get proper wrapping; Emph [Inline] is no longer treated as a big unwrappable unit. Previously we only got breaks for spaces at the "outer level." We can also more easily avoid doubled blank lines. Performance is significantly better as well. * Removed Text.Pandoc.Blocks. Text.Pandoc.Pretty allows you to define blocks and concatenate them. * Modified markdown, RST, org readers to use Text.Pandoc.Pretty instead of Text.PrettyPrint.HughesPJ. * Text.Pandoc.Shared: Added writerColumns to WriterOptions. * Markdown, RST, Org writers now break text at writerColumns. * Added --columns command-line option, which sets stColumns and writerColumns. * Table parsing: If the size of the header > stColumns, use the header size as 100% for purposes of calculating relative widths of columns.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal10
1 files changed, 6 insertions, 4 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 312111afb..089ba6095 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -87,7 +87,7 @@ Extra-Source-Files:
tests/latex-reader.native,
tests/markdown-reader-more.txt,
tests/markdown-reader-more.native,
- tests/textile-reader.textile,
+ tests/textile-reader.textile,
tests/rst-reader.native,
tests/rst-reader.rst,
tests/s5.basic.html,
@@ -175,7 +175,8 @@ Library
random, extensible-exceptions,
citeproc-hs >= 0.3 && < 0.4,
pandoc-types == 1.7.*,
- json >= 0.4 && < 0.5
+ json >= 0.4 && < 0.5,
+ dlist >= 0.4 && < 0.6
if impl(ghc >= 6.10)
Build-depends: base >= 4 && < 5, syb
else
@@ -193,7 +194,7 @@ Library
-- END DUPLICATED SECTION
Exposed-Modules: Text.Pandoc,
- Text.Pandoc.Blocks,
+ Text.Pandoc.Pretty,
Text.Pandoc.CharacterReferences,
Text.Pandoc.Shared,
Text.Pandoc.Parsing,
@@ -247,7 +248,8 @@ Executable pandoc
random, extensible-exceptions,
citeproc-hs >= 0.3 && < 0.4,
pandoc-types == 1.7.*,
- json >= 0.4 && < 0.5
+ json >= 0.4 && < 0.5,
+ dlist >= 0.4 && < 0.6
if impl(ghc >= 6.10)
Build-depends: base >= 4 && < 5, syb
else