"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/Tests/Readers/Org/Block.hs" between
pandoc-2.11.1.1.tar.gz and pandoc-2.11.2.tar.gz

About: Pandoc converts files from one markup format into another.

Block.hs  (pandoc-2.11.1.1):Block.hs  (pandoc-2.11.2)
skipping to change at line 78 skipping to change at line 78
, horizontalRule , horizontalRule
, para "after" , para "after"
] ]
, "Not a Horizontal Rule" =: , "Not a Horizontal Rule" =:
"----- em and en dash" =?> "----- em and en dash" =?>
para "\8212\8211 em and en dash" para "\8212\8211 em and en dash"
, testGroup "Comments" , testGroup "Comments"
[ "Comment Block" =: [ "Comment Block" =:
T.unlines [ "#+BEGIN_COMMENT" T.unlines [ "#+begin_comment"
, "stuff" , "stuff"
, "bla" , "bla"
, "#+END_COMMENT"] =?> , "#+end_comment"] =?>
(mempty::Blocks) (mempty::Blocks)
, "Comment line" =: , "Comment line" =:
T.unlines [ "# this is a comment" ] =?> T.unlines [ "# this is a comment" ] =?>
(mempty :: Blocks) (mempty :: Blocks)
, "Empty comment line" =: , "Empty comment line" =:
T.unlines [ " #" ] =?> T.unlines [ " #" ] =?>
(mempty :: Blocks) (mempty :: Blocks)
] ]
, testGroup "Blocks and fragments" , testGroup "Blocks and fragments"
[ "HTML block" =: [ "HTML block" =:
T.unlines [ "#+BEGIN_HTML" T.unlines [ "#+begin_html"
, "<aside>HTML5 is pretty nice.</aside>" , "<aside>HTML5 is pretty nice.</aside>"
, "#+END_HTML" , "#+end_html"
] =?> ] =?>
rawBlock "html" "<aside>HTML5 is pretty nice.</aside>\n" rawBlock "html" "<aside>HTML5 is pretty nice.</aside>\n"
, "Quote block" =: , "Quote block" =:
T.unlines [ "#+BEGIN_QUOTE" T.unlines [ "#+begin_quote"
, "/Niemand/ hat die Absicht, eine Mauer zu errichten!" , "/Niemand/ hat die Absicht, eine Mauer zu errichten!"
, "#+END_QUOTE" , "#+end_quote"
] =?> ] =?>
blockQuote (para (spcSep [ emph "Niemand", "hat", "die", "Absicht," blockQuote (para (spcSep [ emph "Niemand", "hat", "die", "Absicht,"
, "eine", "Mauer", "zu", "errichten!" , "eine", "Mauer", "zu", "errichten!"
])) ]))
, "Verse block" =: , "Verse block" =:
T.unlines [ "The first lines of Goethe's /Faust/:" T.unlines [ "The first lines of Goethe's /Faust/:"
, "#+begin_verse" , "#+begin_verse"
, "Habe nun, ach! Philosophie," , "Habe nun, ach! Philosophie,"
, "Juristerei und Medizin," , "Juristerei und Medizin,"
skipping to change at line 131 skipping to change at line 131
, "Goethe's", emph "Faust" <> ":"] , "Goethe's", emph "Faust" <> ":"]
, lineBlock , lineBlock
[ "Habe nun, ach! Philosophie," [ "Habe nun, ach! Philosophie,"
, "Juristerei und Medizin," , "Juristerei und Medizin,"
, "Und leider auch Theologie!" , "Und leider auch Theologie!"
, "Durchaus studiert, mit heißem Bemühn." , "Durchaus studiert, mit heißem Bemühn."
] ]
] ]
, "Verse block with blank lines" =: , "Verse block with blank lines" =:
T.unlines [ "#+BEGIN_VERSE" T.unlines [ "#+begin_verse"
, "foo" , "foo"
, "" , ""
, "bar" , "bar"
, "#+END_VERSE" , "#+end_verse"
] =?> ] =?>
lineBlock [ "foo", mempty, "bar" ] lineBlock [ "foo", mempty, "bar" ]
, "Verse block with varying indentation" =: , "Verse block with varying indentation" =:
T.unlines [ "#+BEGIN_VERSE" T.unlines [ "#+begin_verse"
, " hello darkness" , " hello darkness"
, "my old friend" , "my old friend"
, "#+END_VERSE" , "#+end_verse"
] =?> ] =?>
lineBlock [ "\160\160hello darkness", "my old friend" ] lineBlock [ "\160\160hello darkness", "my old friend" ]
, "Raw block LaTeX" =: , "Raw block LaTeX" =:
T.unlines [ "#+BEGIN_LaTeX" T.unlines [ "#+begin_latex"
, "The category $\\cat{Set}$ is adhesive." , "The category $\\cat{Set}$ is adhesive."
, "#+END_LaTeX" , "#+end_latex"
] =?> ] =?>
rawBlock "latex" "The category $\\cat{Set}$ is adhesive.\n" rawBlock "latex" "The category $\\cat{Set}$ is adhesive.\n"
, "Raw LaTeX line" =: , "Raw LaTeX line" =:
"#+LATEX: \\let\\foo\\bar" =?> "#+latex: \\let\\foo\\bar" =?>
rawBlock "latex" "\\let\\foo\\bar" rawBlock "latex" "\\let\\foo\\bar"
, "Raw Beamer line" =: , "Raw Beamer line" =:
"#+beamer: \\pause" =?> "#+beamer: \\pause" =?>
rawBlock "beamer" "\\pause" rawBlock "beamer" "\\pause"
, "Raw HTML line" =: , "Raw HTML line" =:
"#+HTML: <aside>not important</aside>" =?> "#+html: <aside>not important</aside>" =?>
rawBlock "html" "<aside>not important</aside>" rawBlock "html" "<aside>not important</aside>"
, "Export block HTML" =: , "Export block HTML" =:
T.unlines [ "#+BEGIN_export html" T.unlines [ "#+begin_export html"
, "<samp>Hello, World!</samp>" , "<samp>Hello, World!</samp>"
, "#+END_export" , "#+end_export"
] =?> ] =?>
rawBlock "html" "<samp>Hello, World!</samp>\n" rawBlock "html" "<samp>Hello, World!</samp>\n"
, "LaTeX fragment" =: , "LaTeX fragment" =:
T.unlines [ "\\begin{equation}" T.unlines [ "\\begin{equation}"
, "X_i = \\begin{cases}" , "X_i = \\begin{cases}"
, " G_{\\alpha(i)} & \\text{if }\\alpha(i-1) = \\alpha(i)\\ \\" , " G_{\\alpha(i)} & \\text{if }\\alpha(i-1) = \\alpha(i)\\ \\"
, " C_{\\alpha(i)} & \\text{otherwise}" , " C_{\\alpha(i)} & \\text{otherwise}"
, " \\end{cases}" , " \\end{cases}"
, "\\end{equation}" , "\\end{equation}"
skipping to change at line 200 skipping to change at line 200
, "Convert blank lines in blocks to single newlines" =: , "Convert blank lines in blocks to single newlines" =:
T.unlines [ "#+begin_html" T.unlines [ "#+begin_html"
, "" , ""
, "<span>boring</span>" , "<span>boring</span>"
, "" , ""
, "#+end_html" , "#+end_html"
] =?> ] =?>
rawBlock "html" "\n<span>boring</span>\n\n" rawBlock "html" "\n<span>boring</span>\n\n"
, "Accept `ATTR_HTML` attributes for generic block" =: , "Accept `attr_html` attributes for generic block" =:
T.unlines [ "#+ATTR_HTML: :title hello, world :id test :class fun code" T.unlines [ "#+attr_html: :title hello, world :id test :class fun code"
, "#+BEGIN_TEST" , "#+begin_test"
, "nonsense" , "nonsense"
, "#+END_TEST" , "#+end_test"
] =?> ] =?>
let attr = ("test", ["fun", "code", "TEST"], [("title", "hello, world")]) let attr = ("test", ["fun", "code", "test"], [("title", "hello, world")])
in divWith attr (para "nonsense") in divWith attr (para "nonsense")
] ]
, testGroup "Headers" Header.tests , testGroup "Headers" Header.tests
, testGroup "Figures" Figure.tests , testGroup "Figures" Figure.tests
, testGroup "Lists" List.tests , testGroup "Lists" List.tests
, testGroup "CodeBlocks" CodeBlock.tests , testGroup "CodeBlocks" CodeBlock.tests
, testGroup "Tables" Table.tests , testGroup "Tables" Table.tests
] ]
 End of changes. 19 change blocks. 
21 lines changed or deleted 21 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)