!! Version 2
# This is another parserTest file.
# Parser tests should go to parserTests.txt
# This one got exiled here because it's testing a broken character
# a) Already lost this test for years when removed on r12975
# b) Some text editors choke on the file due to the   character

!! test
External links: invalid character NUL (stripped)
!! wikitext
[http://www.example.com  test]
!! html
<p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
</p>
!! end

!! test
External links: invalid character backspace (preserved)
!! options
preprocessor=Preprocessor_Hash
!! wikitext
[http://www.example.com test]
!! html
<p>[<a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a> test]
</p>
!! end

!! test
Magic link: invalid character NUL (stripped)
!! wikitext
http://www.example.com  test
!! html
<p><a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a> test
</p>
!! end

!! test
Magic link: invalid character backspace (preserved)
!! options
preprocessor=Preprocessor_Hash
!! wikitext
http://www.example.com test
!! html
<p><a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a> test
</p>
!! end

!! test
External links: tab character
!! wikitext
[http://www.example.com Alice in	Wonderland]
!! html
<p><a rel="nofollow" class="external text" href="http://www.example.com">Alice in	Wonderland</a>
</p>
!! end

## Note that there's a leading \r here that's necessary for the test
!! test
Stray carriage return in text
!! options
parsoid=wt2html
!! wikitext

hiho
!! html/php
<p>
hiho
</p>
!! html/parsoid
<p>
hiho</p>
!! end
