#135 ✓resolved
Ion Balan

Accept multiline content in the table cell

Reported by Ion Balan | March 19th, 2009 @ 05:34 AM | in 4.2.0

http://www.textism.com/tools/tex... :


source:
|a|b
b|
|c
c|d|

result:
<table>
	<tr>
		<td>a</td>
		<td>b<br />
b</td>
	</tr>
	<tr>
		<td>c<br />
c</td>
		<td>d</td>
	</tr>
</table>

RedCloth 4.1.9:


irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'redcloth'
=> true
irb(main):003:0> RedCloth.new("|a|b\nb|\n|c\nc|d|").to_html
=> "<table>\n\t<tr>\n\t\t<td>a</td>\n</table>\nb\nb|\n|c\nc|d|"

expected:
"<table>\n\t<tr>\n\t\t<td>a</td>\n\t\t<td>b b</td>\n\t</tr>\n\t<tr>\n\t\t<td>c c</td>\n\t\t<td>d</td>\n\t</tr>\n</table>"

Comments and changes to this ticket

  • Jason Garber

    Jason Garber March 23rd, 2009 @ 11:30 AM

    • State changed from “new” to “open”

    This is important. It should be a high priority.

  • Jason Garber

    Jason Garber May 26th, 2009 @ 03:25 PM

    • State changed from “open” to “resolved”
  • Cid Dennis

    Cid Dennis June 14th, 2009 @ 07:43 PM

    I still have issue even with this change. When I put this in to Textism
    @@@html |

    Test

    Tile For Less, Arvada

    7450 W. 52nd
    Arvada, CO 80002
    Phone: 303.431.0502 Map Our Location

    STORE HOURS:


    Monday - Friday: 9 AM - 6 PM
    Saturday: 10 AM - 5 PM
    Sunday: 11 AM - 4 PM

    |


    h2. Arvada
    Providing excellence in customer service and tile design for over 17 years.

    |

    
    I get: 
    @@@html

    &lt;table&gt;
        &lt;tr&gt;
            &lt;td&gt;
    
    &lt;h1&gt;Test&lt;/h1&gt;
    
    &lt;h1&gt;Tile For Less, Arvada&lt;/h1&gt;
    
    &lt;p&gt;7450 W. 52nd&lt;br /&gt;
    
    
    
    
    Arvada, CO 80002<br /> <strong>Phone:</strong> 303.431.0502<br /> <a href="http://www.mapquest.com/maps/map.adp?country=US&amp;#38;countryid=2... Our Location</a></p>
    &lt;h2&gt;STORE HOURS:&lt;/h2&gt;
    
    &lt;p&gt;&lt;br /&gt;
    
    
    
    
    Monday &#45; Friday: 9 AM &#45; 6 PM<br /> Saturday: 10 AM &#45; 5 PM<br /> Sunday: 11 AM &#45; 4 PM<br /> </p>
    &lt;p&gt;&lt;/td&gt;&lt;/p&gt;
            &lt;td&gt; 
    
    &lt;p&gt;&lt;img src='http://cdn.shopify.com/s/files/1/0031/3902/files/Arvada_Front.jpg?1244247226' alt='' /&gt;&lt;br /&gt;
    
    
    
    
    h2. Arvada<br /> Providing excellence in customer service and tile design for over 17 years.</p>
    &lt;p&gt;&lt;/td&gt;&lt;/p&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
    
    
    
    

    When RedCloth does it I get:
    @@@html

    |

    Test


    Tile For Less, Arvada


    7450 W. 52nd

    Arvada, CO 80002

    Phone: 303.431.0502

    Map Our Location


    STORE HOURS:


    Monday - Friday: 9 AM - 6 PM
    Saturday: 10 AM - 5 PM
    Sunday: 11 AM - 4 PM

    |




    h2. Arvada

    Providing excellence in customer service and tile design for over 17 years.


    |



    
    
  • Cid Dennis

    Cid Dennis June 14th, 2009 @ 07:46 PM

    • no changes were found...
  • Cid Dennis

    Cid Dennis June 14th, 2009 @ 07:46 PM

    Sorry about that guess I still did not get formating right. I attached a txt file with input and output from Textism and RedCloth.

  • Jason Garber

    Jason Garber June 16th, 2009 @ 01:18 PM

    Yeah, I don't think we can support that. I always use http://textile.thresholdstate.com/ to test PHP Textile. Textism.com is quite outdated, I think. Besides, if I did implement what you requested, that would encourage non-semantic markup. I'll bend a little, but not that far. Sorry.

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.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket

Attachments

Referenced by

Pages