From 536b6bf538a95f6db6ed41b72257f8b09fd26886 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 11 Dec 2015 15:58:11 -0800 Subject: Implemented SoftBreak and new `--wrap` option. Added threefold wrapping option. * Command line option: deprecated `--no-wrap`, added `--wrap=[auto|none|preserve]` * Added WrapOption, exported from Text.Pandoc.Options * Changed type of writerWrapText in WriterOptions from Bool to WrapOption. * Modified Text.Pandoc.Shared functions for SoftBreak. * Supported SoftBreak in writers. * Updated tests. * Updated README. Closes #1701. --- data/sample.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'data/sample.lua') diff --git a/data/sample.lua b/data/sample.lua index fa265d04d..0cb492392 100644 --- a/data/sample.lua +++ b/data/sample.lua @@ -100,6 +100,10 @@ function Space() return " " end +function SoftBreak() + return "\n" +end + function LineBreak() return "
" end @@ -128,12 +132,12 @@ function Strikeout(s) return '' .. s .. '' end -function Link(s, src, tit) +function Link(s, src, tit, attr) return "" .. s .. "" end -function Image(s, src, tit) +function Image(s, src, tit, attr) return "" end -- cgit v1.2.3