aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-09-04 00:20:54 -0400
committerWaylan Limberg <waylan@gmail.com>2008-09-04 00:29:28 -0400
commit1656abd114d7aae059e15302a9cc36f81154fe01 (patch)
tree89b5540e475c578b7545759c85b87f3358926754 /tests/misc
parent290ad46003ca04a07f6bd8c39ef4301c48074fe6 (diff)
downloadmarkdown-1656abd114d7aae059e15302a9cc36f81154fe01.tar.gz
markdown-1656abd114d7aae059e15302a9cc36f81154fe01.tar.bz2
markdown-1656abd114d7aae059e15302a9cc36f81154fe01.zip
Moved prettifyETree into a Postprocessor and added code to append all '<br />' tags with a linebreak. Also fixed a minor bug were the '<br />' tags contained 2 spaces instead of one before the slash (i.e. '<br />'). Note that by moving to a Postprocessor, anyone can override with their own code which does what they want (i.e. add indentation) with the extension api.
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/html.html3
-rw-r--r--tests/misc/two-spaces.html15
2 files changed, 12 insertions, 6 deletions
diff --git a/tests/misc/html.html b/tests/misc/html.html
index 84fe763..81ac5ee 100644
--- a/tests/misc/html.html
+++ b/tests/misc/html.html
@@ -1,6 +1,7 @@
<h1>Block level html</h1>
-<p>Some inline <b>stuff<b>.<br /></p>
+<p>Some inline <b>stuff<b>.<br />
+</p>
<p>Now some <arbitrary>arbitrary tags</arbitrary>.</p>
<div>More block level html.</div>
diff --git a/tests/misc/two-spaces.html b/tests/misc/two-spaces.html
index b0e872c..83837d2 100644
--- a/tests/misc/two-spaces.html
+++ b/tests/misc/two-spaces.html
@@ -1,14 +1,19 @@
-<p>This line has two spaces at the end<br />but this one has none
-but this line has three <br />and this is the second from last line
+<p>This line has two spaces at the end<br />
+but this one has none
+but this line has three <br />
+and this is the second from last line
in this test message</p>
<ul>
<li>
-<p>This list item has two spaces.<br /></p>
+<p>This list item has two spaces.<br />
+</p>
</li>
<li>
<p>This has none.
-This line has three. <br />This line has none.
-And this line two.<br /></p>
+This line has three. <br />
+This line has none.
+And this line two.<br />
+</p>
<p>This line has none.</p>
</li>
<li>