
non-block starts beginning with t eaten
Reported by Paweł Gościcki | October 12th, 2008 @ 02:27 PM | in 4.2.0
Paragraph starting from downcase characters followed by dot and space is eaten up.
>> RedCloth.new("tel. 0 700 123 123").to_html
=> "0 700 123 123"
>> RedCloth.new("telephone. 0 700 123 123").to_html
=> "0 700 123 123"
I'd expect it not to eat up my characters. It should only treat selected characters special (like: p. bq. h1. h2. h3. h4.) and leave others alone.
When the first letter is in uppercase, though, it renders properly:
>> RedCloth.new("Tel. 0 700 123 123").to_html
=> "<p>Tel. 0 700 123 123</p>"
Same goes for content after one newline character:
>> RedCloth.new("Blah.\ntel. 0 700 123 123").to_html
=> "<p>Blah.<br />\ntel. 0 700 123 123</p>"
Comments and changes to this ticket
-
Paweł Gościcki October 12th, 2008 @ 02:33 PM
It seems that only lines starting with smallcase letter 't' experience this problem. For example, those are rendered ok:
>> RedCloth.new("a. 0 700 123 123").to_html => "<p>a. 0 700 123 123</p>" >> RedCloth.new("c. 0 700 123 123").to_html => "<p>c. 0 700 123 123</p>" >> RedCloth.new("g. 0 700 123 123").to_html => "<p>g. 0 700 123 123</p>" >> RedCloth.new("x. 0 700 123 123").to_html => "<p>x. 0 700 123 123</p>"
-
Jason Garber October 15th, 2008 @ 04:55 PM
- Title changed from RedCloth eats-up my characters to non-block starts beginning with t eaten
- State changed from new to open
-
Jason Garber March 17th, 2009 @ 04:52 AM
- Milestone set to 4.2.0
-
Jason Garber June 2nd, 2009 @ 10:58 AM
- State changed from open to resolved
(from [0782111b2766237f5510fe457d136cf479910374]) Resolve conflict between table signature and blocks beginning with t. Now Paul Goscicki can do absurd things like putting his tel. number on his website. ;) [#74 state:resolved] http://github.com/jgarber/redcloth/commit/0782111b2766237f5510fe457...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
RedCloth is a Ruby library for converting Textile into HTML
People watching this ticket
Tags
Referenced by
-
74 non-block starts beginning with t eaten (from [0782111b2766237f5510fe457d136cf479910374]) Resolve...