Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > BlueCloth bug?

Reply
Thread Tools

BlueCloth bug?

 
 
Brian Schröder
Guest
Posts: n/a
 
      09-27-2004
Hello Group,

I'm toying around with BlueCloth, and wonder why I get the following
behaviour:

irb(main):008:0> (BlueCloth.new "test\n\n Code").to_html
=> "<p>test</p>\n\n<p>Code</p>"

I expected
=> "<p>test</p>\n\n<pre>Code</pre>"
because the MarkDown Documentation states that 4 Spaces or one Tab make
a block a codeblock.

Any ideas on what I'm doing wrong?

Brian
--
Brian Schröder
http://ruby.brian-schroeder.de/


 
Reply With Quote
 
 
 
 
Patrick Spence
Guest
Posts: n/a
 
      09-27-2004
The code you provide generated
"<p>test</p>\n\n<pre><code>Code\n</code></pre>" with Ruby 1.8 and
BlueCloth 1.0.0 installed through RubyGems. As this appears to be the
correct output, check that you are using the latest version of
BlueCloth.


On Mon, 27 Sep 2004 19:49:08 +0900, Brian Schröder
<> wrote:
> Hello Group,
>
> I'm toying around with BlueCloth, and wonder why I get the following
> behaviour:
>
> irb(main):008:0> (BlueCloth.new "test\n\n Code").to_html
> => "<p>test</p>\n\n<p>Code</p>"
>
> I expected
> => "<p>test</p>\n\n<pre>Code</pre>"
> because the MarkDown Documentation states that 4 Spaces or one Tab make
> a block a codeblock.
>
> Any ideas on what I'm doing wrong?
>
> Brian
> --
> Brian Schröder
> http://ruby.brian-schroeder.de/
>
>




 
Reply With Quote
 
 
 
 
Brian Schröder
Guest
Posts: n/a
 
      09-27-2004
Thanks for testing it. I used rpa to install bluecloth and assumed it
would be the current version. But it seems to be an old 0.0.3b version.

regards,

Brian


Patrick Spence wrote:
> The code you provide generated
> "<p>test</p>\n\n<pre><code>Code\n</code></pre>" with Ruby 1.8 and
> BlueCloth 1.0.0 installed through RubyGems. As this appears to be the
> correct output, check that you are using the latest version of
> BlueCloth.
>
>
> On Mon, 27 Sep 2004 19:49:08 +0900, Brian Schröder
> <> wrote:
>
>>Hello Group,
>>
>>I'm toying around with BlueCloth, and wonder why I get the following
>>behaviour:
>>
>>irb(main):008:0> (BlueCloth.new "test\n\n Code").to_html
>>=> "<p>test</p>\n\n<p>Code</p>"
>>
>>I expected
>>=> "<p>test</p>\n\n<pre>Code</pre>"
>>because the MarkDown Documentation states that 4 Spaces or one Tab make
>>a block a codeblock.
>>
>>Any ideas on what I'm doing wrong?
>>
>>Brian
>>--
>>Brian Schröder
>>http://ruby.brian-schroeder.de/
>>
>>

>
>



--
Brian Schröder
http://ruby.brian-schroeder.de/


 
Reply With Quote
 
Mauricio Fernández
Guest
Posts: n/a
 
      09-27-2004
On Mon, Sep 27, 2004 at 09:31:26PM +0900, Brian Schröder wrote:
> Thanks for testing it. I used rpa to install bluecloth and assumed it
> would be the current version. But it seems to be an old 0.0.3b version.


Bluecloth 1.0.0 is now in RPA (I had missed that release); just
rpa update
rpa install bluecloth
to get it.
--
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BlueCloth bold/italic problem. Lloyd Zusman Ruby 1 11-20-2004 06:36 AM
[ANN] BlueCloth-1.0.0fc3 Michael Granger Ruby 0 08-31-2004 05:56 AM
[ANN] BlueCloth-0.0.3b Michael Granger Ruby 0 04-30-2004 04:44 AM
[ANN] BlueCloth 0.0.2 (beta) Michael Granger Ruby 17 04-20-2004 09:21 AM
[ANN] BlueCloth: a Markdown implementation for Ruby Michael Granger Ruby 14 04-16-2004 09:57 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57