Commit 1b19c08c authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 170822 - Linkification process destroys whitespace. Patch by gerv; r=bbaetz.

parent 37dc5c77
...@@ -26,18 +26,29 @@ ...@@ -26,18 +26,29 @@
Copy and paste the text below: Copy and paste the text below:
</p> </p>
<hr>
<p> <p>
<tt> <pre>
[% quoteUrls(form.text) FILTER html %] [%- quoteUrls(form.text) FILTER html -%]
</tt> </pre>
</p> </p>
<hr>
<p> <p>
It will end up looking like this: If you place it in <tt>&lt;pre&gt;</tt> tags,
the text will end up looking like this:
</p> </p>
<hr>
<p> <p>
[% quoteUrls(form.text) %] <pre>
[%- quoteUrls(form.text) -%]
</pre>
</p> </p>
<hr>
[% INCLUDE global/footer.html.tmpl %] [% INCLUDE global/footer.html.tmpl %]
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</p> </p>
<form action="page.cgi" method="post"> <form action="page.cgi" method="post">
<textarea cols="80" rows="20" name="text"></textarea> <textarea cols="80" rows="20" name="text" wrap="hard"></textarea>
<br> <br>
<input type="hidden" name="id" value="linked.html"> <input type="hidden" name="id" value="linked.html">
<input value="Linkify" type="submit"> <input value="Linkify" type="submit">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment