@@ -107,6 +107,7 @@ data Opt = Opt
107 , optIgnoreArgs :: Bool -- ^ Ignore command-line arguments
107 , optIgnoreArgs :: Bool -- ^ Ignore command-line arguments
108 , optStrict :: Bool -- ^ Use strict markdown syntax
108 , optStrict :: Bool -- ^ Use strict markdown syntax
109 , optReferenceLinks :: Bool -- ^ Use reference links in writing markdown, rst
109 , optReferenceLinks :: Bool -- ^ Use reference links in writing markdown, rst
110+ , optWrapText :: Bool -- ^ Wrap text
112-- | Defaults for command-line options.
113-- | Defaults for command-line options.
@@ -135,6 +136,7 @@ defaultOpts = Opt
135 , optIgnoreArgs = False
136 , optIgnoreArgs = False
136 , optStrict = False
137 , optStrict = False
137 , optReferenceLinks = False
138 , optReferenceLinks = False
139+ , optWrapText = True
140-- | A list of functions, each transforming the options data structure
142-- | A list of functions, each transforming the options data structure
@@ -213,6 +215,11 @@ options =
213 (\opt -> return opt { optNumberSections = True }))
215 (\opt -> return opt { optNumberSections = True }))
214 "" -- "Number sections in LaTeX"
216 "" -- "Number sections in LaTeX"
218+ , Option "" ["no-wrap"]
220+ (\opt -> return opt { optWrapText = False }))
221+ "" -- "Do not wrap text in output"
216 , Option "" ["toc", "table-of-contents"]
223 , Option "" ["toc", "table-of-contents"]
218 (\opt -> return opt { optTableOfContents = True }))
225 (\opt -> return opt { optTableOfContents = True }))
@@ -408,6 +415,7 @@ main = do
408 , optIgnoreArgs = ignoreArgs
415 , optIgnoreArgs = ignoreArgs
409 , optStrict = strict
416 , optStrict = strict
410 , optReferenceLinks = referenceLinks
417 , optReferenceLinks = referenceLinks
418+ , optWrapText = wrap
413 if dumpArgs
421 if dumpArgs
@@ -491,7 +499,8 @@ main = do
491 writerIncludeBefore = includeBefore,
499 writerIncludeBefore = includeBefore,
492 writerIncludeAfter = includeAfter,
500 writerIncludeAfter = includeAfter,
493 writerStrictMarkdown = strict,
501 writerStrictMarkdown = strict,
494− writerReferenceLinks = referenceLinks }
502+ writerReferenceLinks = referenceLinks,
503+ writerWrapText = wrap }
496 (readSources sources) >>= (hPutStrLn output . toUTF8 .
505 (readSources sources) >>= (hPutStrLn output . toUTF8 .
497 (writer writerOptions) .
506 (writer writerOptions) .