similar to: :filter_html and :hard_breaks makes <br> ...weird

Displaying 20 results from an estimated 1000 matches similar to: ":filter_html and :hard_breaks makes <br> ...weird"

2006 Aug 04
0
Hard break broken in 3.0.4?
Is :hard_break working in RedCloth 3.0.4? $ ruby -v ruby 1.8.4 (2005-12-24) [i686-linux] $ pwd /lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib $ irb irb(main):001:0> require ''redcloth'' => true irb(main):002:0> rc = RedCloth.new("h1. Heading\n\n_Not_ heading.") => "h1. Heading\n\n_Not_ heading." irb(main):003:0>
2007 Jan 16
1
<BR> and <P> in RedCloth v. Textism
Hi, I''m using RedCloth right now for some simple markup in a Rails project. It''s simple and easy - thanks for a great tool! I have a question about an apparent discrepancy between RedCloth and Textile, relating to newline characters. I''ve played with the "hard_breaks" feature and that seems to generate it''s own problems.. If I go onto the Textile
2006 May 10
2
hard_breaks
Dear Dressers of RedCloth, I have a question: text = "Foo\nBar\n\nBaz" RedCloth.new(text, [ :hard_breaks ]).to_html # => "<p>Foo<br />Bar<br />\nBaz</p>" Shouldn''t that really be "<p>Foo<br />Bar</p><p>Baz</p>"? So long, -- Christoffer Sawicki
2007 Aug 29
0
Patch - bug fix for RedCloth when using !image! and :filter_html in combination
RedCloth.new("!image!", [:filter_html]).to_html will cause the following error: "error occurred while evaluating nil.gsub" This patch will fix it. Can you apply this please to next release of RedCloth? Thanks! Tim --- redcloth_old.rb 2007-08-29 17:02:51.537099600 -0600 +++ redcloth.rb 2007-08-29 17:04:34.666099600 -0600 @@ -1115,7 +1115,7 @@
2008 May 13
4
hard_breaks issues
Hello, I''m new to this list, so first of all, many thanks to RedCloth''s developers, it really helps me in many ruby apps :-) I post here because I''d like to have a clear view on "hard_breaks" related issues. I saw old references on the web and on the archives on this ML, I''d like a fresh view ! It seems that RedCloth 3.0.4 does not handle
2007 Jan 28
1
^SUPER^ _RED_ ~CLOTH~ 1.153
New gems (source and win32): gem install superredcloth --source http://code.whytheluckystiff.net Use it like: SuperRedCloth.new("_huh?_").to_html Okay, getting close! A lot more tests are passing. There are still about 50 tests failing. Most of these are due to ol/ul list problems. Here''s what''s still broken: * Options (:hard_breaks, :filter_html, etc.) *
2007 Dec 04
2
Bug: NoMethodError: private method `gsub'' called for nil:NilClass
Hi there. I''m using RedCloth as part of a social network''s blog system. I came across the following bug when an img tag with the src attribute is inputted, and filter_html is set to true. I have pasted the code sample below. >> require ''RubyGems'' => true >> require ''RedCloth'' => true >>
2006 Sep 18
2
RedCloth !image! bug with filter_html
Hi all! I am trying tu set up RedCloth for user-submitted comments. And here is my problem. The :filter_html option just breaks images :-( For example, if I try in irb: string= "Some textile !agif.gif! and textile again" RedCloth.new(string, [:filter_html, :filter_styles]).to_html(:textile) I get: NoMethodError: You have a nil object when you didn''t expect it! The error
2005 Nov 21
1
Hard_breaks issue
Hi all, I can dive into it and figure out why using hard_breaks breaks RedCloth parsing so badly since 3.0.4, but I was wondering if someone could point me to the right direction. Thanks! - Lucas http://rufy.com/
2006 Mar 25
2
Textilize problems with line breaks
I''m having a problem formatting some text. I have a textarea that I input my text into, which will then be put into an e-mail and sent out. The problem I am having is when there is a single line break. Multiple line breaks work fine (hitting enter twice), but single line breaks don''t seem to work properly. Take the following input: Line1. Line2. Line3. Line4. Using
2006 Jan 27
9
RedCloth Hard Breaks
Has anybody gotten :hard_breaks to work with RedCloth? I''m doing: self.body_html = RedCloth.new(self.body).to_html(:textile) which works, except that it doesn''t transform hard breaks to <br /> tags, which is really important for me. However, if I do: self.body_html = RedCloth.new(self.body, [ :hard_breaks ]).to_html(:textile) then it converts ALL breaks into <br
2006 Jun 14
7
CR issue
Hi, I am using RedCloth (3.0.4). First using online text2html (http://www.textism.com/tools/textile/) , "123 456" returns <p>123<br />456</p> But by code: <code> require ''RedCloth'' puts RedCloth.new("123\n456").to_html </code> I got: <p>123 456</p> CR is not taken in consideration. Is there any parameter I am
2006 Jul 05
0
RedCloth Error with :filter_html and external images links
Hi all, I''m trying to use RedCloth to filter HTML out of some user generated content using the :filter_html setting and I get the same error as reported in the link below. http://rubyforge.org/tracker/index.php?func=detail&aid=3262&group_id=216&atid=891 Has anyone found a workaround for this? -- Thanks, Sam -------------- next part -------------- An HTML attachment was
2006 Aug 23
0
emdash vs <del>
Hey guys. Is this a bug or what? >> RedCloth.new("First part -- middle part -- end part.").to_html => "<p>First part <del>- middle part -</del> end part.</p>" But http://textism.com/tools/textile/index.php says the output should be: <p>First part&#8212;middle part&#8212;end part.</p> Thing is, I *want*
2010 Apr 13
1
BBCode Fork of RedCloth
how do you install this? especially on rails 3? putting gem "redcloth", :git => "git://github.com/ROFISH/redcloth.git" doesn''t work. and do nested tags like [quote][quote][/quote][/quote] work? -- Posted via http://www.ruby-forum.com/.
2007 Jan 23
7
RedCloth and SuperRedCloth
Good day to the parliament of RedCloth followers gathered here. Grave matters at hand!! I''m personally quite unhappy with the state of RedCloth and am reluctant to release the code in the repository. I can''t say if the code works with any confidence because I can''t generate the (Poignant) Guide with the current RedCloth. I know some things are fixed, but I''m
2007 Apr 25
0
Redcloth bug - Stack overflow in regexp matcher
Hi, I''ve been using the rassmalog static blogging engine and have encountered a stack overflow inside the redcloth regexp matcher. I don''t seem to suffer this error on my Ubuntu (Feisty Fawn) box (with Ruby 1.8.4??), but I do get it on my Gentoo system. Running the following line will generate it (I''ve attached the YAML/redcloth file to this message). $ ruby -ryaml
2006 Feb 28
0
help with sanitizing html (comments in blog)
I''ve added this method in my model which is called with each save. It does a good job getting rid of html tags and then emplementing RedCloth. I''m very new at blogs so I''m not sure if this is adequate or not for comments. What do you think? I would love to hear if this is safe, unsafe, or just plain bad form. Also, I don''t think that RedCloth is
2006 Apr 25
4
redcloth poblems
Hi, I''m having some problems with redcloth(3.0.4 gem) and textilize. I have a string: "h2. hello _what''s up?_" which is being textilized as: <h2>hello<br /> <em>what&#8217;s up?</em></h2> so no paragraph and h2 wrapped all the way. the input is coming from firefox 1.5.2 on a mac Anybody got any idea what the problem might be? --
2005 Dec 02
0
Hard breaks problem - tests attached
Hi All, As it was mentioned in [1], hard_breaks parsing breaks parsing. Particularly, I noticed that paragraphs and lists don''t work. Attached is a patch to run-tests.rb, as well as yml test case. Not sure if last test case is 100% correct, though. Regards, Vadim [1] http://rubyforge.org/pipermail/redcloth-upwards/2005-November/000012.html -------------- next part -------------- An