Skip to content

Commit 9ad52f1

Browse files
committed
Ensure HTML output is not wrapped
The next pandoc release after 2.16.2 will all HTML output to be wrapped. This breaks current tests, so `--wrap=none` is used whenever HTML is generated.
1 parent c357524 commit 9ad52f1

File tree

6 files changed

+22
-14
lines changed

6 files changed

+22
-14
lines changed

first-line-indent/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ PANDOC ?= pandoc
55

66
test: test_latex test_html
77

8-
test_html: sample.md expected.html first-line-indent.lua
9-
@$(PANDOC) -s --lua-filter first-line-indent.lua --to=html $< \
8+
test_html: sample.md first-line-indent.lua
9+
@$(PANDOC) -s --lua-filter first-line-indent.lua --to=html --wrap=none $< \
1010
| $(DIFF) expected.html -
1111

12-
test_latex: sample.md expected.tex first-line-indent.lua
12+
test_latex: sample.md first-line-indent.lua
1313
@$(PANDOC) -s --lua-filter first-line-indent.lua --to=latex $< \
1414
| $(DIFF) expected.tex -
1515

1616
expected.html: sample.md first-line-indent.lua
17-
$(PANDOC) -s --lua-filter first-line-indent.lua --output $@ $<
17+
$(PANDOC) -s --lua-filter first-line-indent.lua --wrap=none --output $@ $<
1818

1919
expected.tex: sample.md first-line-indent.lua
2020
$(PANDOC) -s --lua-filter first-line-indent.lua --output $@ $<

math2svg/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ test: sample.md math2svg.lua
55
@$(PANDOC) \
66
--mathml --lua-filter=math2svg.lua \
77
-M math2svg_font='Gyre-Pagella' \
8+
--wrap=none \
89
--to=html sample.yaml $< \
910
| $(DIFF) expected.html -
1011

@@ -13,6 +14,7 @@ expected: sample.md math2svg.lua
1314
--mathml --lua-filter=math2svg.lua \
1415
-M math2svg_tex2svg='/usr/local/bin/tex2svg' \
1516
-M math2svg_font='Gyre-Pagella' \
17+
--wrap=none \
1618
--output=expected.html sample.yaml $<
1719

1820
.PHONY: test

not-in-format/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ PANDOC ?= pandoc
66
test: test_html test_latex
77

88
test_html: sample.md expected.html not-in-format.lua
9-
@$(PANDOC) --lua-filter not-in-format.lua --to=html $< \
9+
@$(PANDOC) --lua-filter not-in-format.lua --to=html --wrap=none $< \
1010
| $(DIFF) expected.html -
1111

1212
test_latex: sample.md expected.tex not-in-format.lua
1313
@$(PANDOC) --lua-filter not-in-format.lua --to=latex $< \
1414
| $(DIFF) expected.tex -
1515

1616
expected.html: sample.md not-in-format.lua
17-
$(PANDOC) --lua-filter not-in-format.lua --output $@ $<
17+
$(PANDOC) --lua-filter not-in-format.lua --wrap=none --output $@ $<
1818

1919
expected.tex: sample.md not-in-format.lua
2020
$(PANDOC) --lua-filter not-in-format.lua --output $@ $<

pagebreak/Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ PANDOC ?= pandoc
44
test: test-asciidoc test-html test-md
55

66
test-asciidoc:
7-
@$(PANDOC) --lua-filter=pagebreak.lua sample.md --to asciidoc | $(DIFF) expected.adoc -
7+
@$(PANDOC) --lua-filter=pagebreak.lua sample.md --to asciidoc | \
8+
$(DIFF) expected.adoc -
89

910
test-html:
10-
@$(PANDOC) --lua-filter=pagebreak.lua sample.md | $(DIFF) expected.html -
11+
@$(PANDOC) --lua-filter=pagebreak.lua --wrap=none sample.md | \
12+
$(DIFF) expected.html -
1113

1214
test-md:
13-
@$(PANDOC) -t ms --lua-filter=pagebreak.lua sample.md | $(DIFF) expected.ms -
15+
@$(PANDOC) -t ms --lua-filter=pagebreak.lua sample.md | \
16+
$(DIFF) expected.ms -
1417

1518
.PHONY: test test-asciidoc test-html test-md

pandoc-quotes.lua/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ prepare-tmp:
1515
@rm -f test/tmp/*
1616

1717
test-noop: prepare-tmp
18-
@$(PANDOC) --lua-filter ./$(PANDOC)-quotes.lua -f markdown-smart -t html \
19-
-o $(TMP_DIR)/$@.out $(DATA_DIR)/$@.md
18+
@$(PANDOC) --lua-filter ./pandoc-quotes.lua -f markdown-smart -t html \
19+
--wrap=none -o $(TMP_DIR)/$@.out $(DATA_DIR)/$@.md
2020
@$(DIFF) $(TMP_DIR)/$@.out $(NORM_DIR)/$@.out
2121

2222
$(TESTS): prepare-tmp
23-
@$(PANDOC) --lua-filter ./$(PANDOC)-quotes.lua -t html \
24-
-o $(TMP_DIR)/$@.out $(DATA_DIR)/$@.md
23+
@$(PANDOC) --lua-filter ./pandoc-quotes.lua -t html \
24+
--wrap=none -o $(TMP_DIR)/$@.out $(DATA_DIR)/$@.md
2525
@$(DIFF) $(TMP_DIR)/$@.out $(NORM_DIR)/$@.out
2626

2727

revealjs-codeblock/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ DIFF ?= diff --strip-trailing-cr -u
22
PANDOC ?= pandoc
33

44
test:
5-
@$(PANDOC) --lua-filter=revealjs-codeblock.lua sample.md -t revealjs | \
5+
@$(PANDOC) --lua-filter=revealjs-codeblock.lua \
6+
--to=revealjs \
7+
--wrap=none \
8+
sample.md | \
69
$(DIFF) expected.html -
710

811
.PHONY: test

0 commit comments

Comments
 (0)