From 9c3a7023014f961197bc27ff8360ce9e1b1d6c29 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 9 Apr 2016 11:44:58 -0700 Subject: Fixed a number of issues relating to line wrapping. - Extend CMARK_OPT_NOBREAKS to all renderers and add `--nobreaks`. - Do not autowrap, regardless of width parameter, if CMARK_OPT_NOBREAKS is set. - Fixed CMARK_OPT_HARDBREAKS for LaTeX and man renderers. - Ensure that no auto-wrapping occurs if CMARK_OPT_NOBREAKS is enabled, or if output is CommonMark and CMARK_OPT_HARDBREAKS is enabled. - Updated man pages. --- man/man1/cmark.1 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'man/man1/cmark.1') diff --git a/man/man1/cmark.1 b/man/man1/cmark.1 index 9ea8d4c..cfde3d7 100644 --- a/man/man1/cmark.1 +++ b/man/man1/cmark.1 @@ -25,13 +25,20 @@ Specify a column width to which to wrap the output. For no wrapping, use the value 0 (the default). This option currently only affects the commonmark, latex, and man renderers. .TP 12n +.B \-\-hardbreaks +Render soft breaks (newlines inside paragraphs in the CommonMark source) +as hard line breaks in the target format. If this option is specified, +hard wrapping is disabled for CommonMark output, regardless of the value +given with \-\-width. +.TP 12n +.B \-\-nobreaks +Render soft breaks as spaces. If this option is specified, +hard wrapping is disabled for all output formats, regardless of the value +given with \-\-width. +.TP 12n .B \-\-sourcepos Include source position attribute. .TP 12n -.B \-\-hardbreaks -Treat newlines as hard line breaks. If this option is specified, -hard wrapping is disabled, regardless of the value given with \-\-width. -.TP 12n .B \-\-normalize Consolidate adjacent text nodes. .TP 12n -- cgit v1.2.3