Skip to content

Commit bd6ccfd

Browse files
committed
Revert "Ensure HTML output is not wrapped"
This reverts commit 9ad52f1. This currently breaks tests. The update will have to wait until the next pandoc version is released.
1 parent 9ad52f1 commit bd6ccfd

File tree

6 files changed

+14
-22
lines changed

6 files changed

+14
-22
lines changed

first-line-indent/Makefile

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

12-
test_latex: sample.md first-line-indent.lua
12+
test_latex: sample.md expected.tex 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 --wrap=none --output $@ $<
17+
$(PANDOC) -s --lua-filter first-line-indent.lua --output $@ $<
1818

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

math2svg/Makefile

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ test: sample.md math2svg.lua
55
@$(PANDOC) \
66
--mathml --lua-filter=math2svg.lua \
77
-M math2svg_font='Gyre-Pagella' \
8-
--wrap=none \
98
--to=html sample.yaml $< \
109
| $(DIFF) expected.html -
1110

@@ -14,7 +13,6 @@ expected: sample.md math2svg.lua
1413
--mathml --lua-filter=math2svg.lua \
1514
-M math2svg_tex2svg='/usr/local/bin/tex2svg' \
1615
-M math2svg_font='Gyre-Pagella' \
17-
--wrap=none \
1816
--output=expected.html sample.yaml $<
1917

2018
.PHONY: test

not-in-format/Makefile

+2-2
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 --wrap=none $< \
9+
@$(PANDOC) --lua-filter not-in-format.lua --to=html $< \
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 --wrap=none --output $@ $<
17+
$(PANDOC) --lua-filter not-in-format.lua --output $@ $<
1818

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

pagebreak/Makefile

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

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

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

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

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

pandoc-quotes.lua/Makefile

+4-4
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-
--wrap=none -o $(TMP_DIR)/$@.out $(DATA_DIR)/$@.md
18+
@$(PANDOC) --lua-filter ./$(PANDOC)-quotes.lua -f markdown-smart -t html \
19+
-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-
--wrap=none -o $(TMP_DIR)/$@.out $(DATA_DIR)/$@.md
23+
@$(PANDOC) --lua-filter ./$(PANDOC)-quotes.lua -t html \
24+
-o $(TMP_DIR)/$@.out $(DATA_DIR)/$@.md
2525
@$(DIFF) $(TMP_DIR)/$@.out $(NORM_DIR)/$@.out
2626

2727

revealjs-codeblock/Makefile

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

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

118
.PHONY: test

0 commit comments

Comments
 (0)