#51 ✓ invalid
Alvin Ye

how to get this html

Reported by Alvin Ye | September 11th, 2008 @ 09:18 PM | in 4.0.4

doc = RedCloth.new " aaaa bbbb cccc " doc.to_html

version 2.11 it was:

aaaa
bbbb
cccc

but now it was:

aaaa\nbbbb\ncccc

How i do to get follow sentences in the new version

aaaa
bbbb
cccc

Thank you

Comments and changes to this ticket

  • Jason Garber

    Jason Garber September 12th, 2008 @ 03:25 AM

    • State changed from “new” to “invalid”
    • Tag set to newlines

    As far as I can tell, you get the desired output in the latest version of RedCloth.

    $ irb -rubygems irb(main):001:0> require 'redcloth' => true irb(main):002:0> RedCloth::VERSION => 4.0.3 irb(main):003:0> doc = RedCloth.new " irb(main):004:0" aaaa irb(main):005:0" bbbb irb(main):006:0" cccc irb(main):007:0" " => " \naaaa \nbbbb \ncccc \n" irb(main):008:0> doc.to_html => "

    aaaa
    \nbbbb
    \ncccc

    "

    If you're not getting the same thing, check your RedCloth version and report back your RedCloth version, ruby version, and platform.

  • Alvin Ye

    Alvin Ye September 14th, 2008 @ 10:27 AM

    1. ruby script\plugin install git://github.com/jgarber/redcloth.git --force

    2. ruby script\console

    3. RedCloth::VERSION => "3.0.4"

    not 4.0.2 ?? why

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

Tags

Pages