summaryrefslogtreecommitdiff
path: root/build/extract-title.hs
diff options
context:
space:
mode:
Diffstat (limited to 'build/extract-title.hs')
-rwxr-xr-xbuild/extract-title.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/extract-title.hs b/build/extract-title.hs
index f3ca1ba..a84442e 100755
--- a/build/extract-title.hs
+++ b/build/extract-title.hs
@@ -5,7 +5,7 @@ import Text.Pandoc.JSON
5import System.IO 5import System.IO
6 6
7extract_title :: Pandoc -> IO Pandoc 7extract_title :: Pandoc -> IO Pandoc
8extract_title d@(Pandoc m _) = do hPutStrLn stderr $ render Nothing $ cat $ map pretty (docTitle m) 8extract_title d@(Pandoc m _) = do hPutStrLn stderr $ (++) "title: " $ render Nothing $ cat $ map pretty (docTitle m)
9 return d 9 return d
10 where pretty :: Inline -> Doc 10 where pretty :: Inline -> Doc
11 pretty (Str s) = text s 11 pretty (Str s) = text s