From 543aa28c3895d4dc7d3d659b652237efb41661b0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 12 Dec 2010 20:09:14 -0800 Subject: 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. --- templates/org.template | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates') diff --git a/templates/org.template b/templates/org.template index 303e1aad0..eaaa17533 100644 --- a/templates/org.template +++ b/templates/org.template @@ -2,7 +2,9 @@ $if(title)$ $title$ $endif$ +$if(author)$ #+AUTHOR: $for(author)$$author$$sep$; $endfor$ +$endif$ $if(date)$ #+DATE: $date$ -- cgit v1.2.3