Skip to content

Commit 2a20c7f

Browse files
authored
pandoc-crossref: Use language-specific heredocs
1 parent 233c09f commit 2a20c7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Formula/p/pandoc-crossref.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ def install
3030
end
3131

3232
test do
33-
(testpath/"hello.md").write <<~EOS
33+
(testpath/"hello.md").write <<~MARKDOWN
3434
Demo for pandoc-crossref.
3535
See equation @eq:eqn1 for cross-referencing.
3636
Display equations are labelled and numbered
3737
3838
$$ P_i(x) = \\sum_i a_i x^i $$ {#eq:eqn1}
39-
EOS
39+
MARKDOWN
4040
output = shell_output("#{Formula["pandoc"].bin}/pandoc -F #{bin}/pandoc-crossref -o out.html hello.md 2>&1")
4141
assert_match "∑", (testpath/"out.html").read
4242
refute_match "WARNING: pandoc-crossref was compiled", output

0 commit comments

Comments
 (0)