Displaying 20 results from an estimated 12000 matches similar to: "render file in helper causes WSOD"
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 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
>>
2008 Jun 04
1
Many thanks for compiz-0.7.6, but 1 box now experiences WSOD
Danny, All
Thanks for a great compiz-0.7.6. The cylinder takes a little warming up to,
but is really cool. Of all the boxes I have updated, I have one that now
experiences the White Screen of Death (WSOD) when compiz is started. Killing X
with ctrl+alt+backspace or ssh from remote and kill compiz and emerald is the
only way out.
The box was working fine with fglrx_7_1_0_SUSE103-8.476-1 and
2007 Apr 05
5
Odd error handling in ActionView#compile_template causes WSOD
If a view file cannot be compiled (eg it has a block with a missing
''end'' statement), I''m experiencing WSODs - the browser reports a lost
network connection, rather than the helpful compilation error that we
used to have.
When the compilation fails, ActionView#compile_template raises this
error :
TemplateError.new(find_base_path_for(file_name || template), file_name
||
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 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 Apr 16
4
wsod since upgrading to 1.1
I just upgraded to 1.1 and I am now getting the wsod for errors that
used to display on the screen. E.G. NoMethodError gives wsod. Does any
one know what caused this and how I can go back to the previous
behavior?
--
Posted via http://www.ruby-forum.com/.
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—middle part—end part.</p>
Thing is, I *want*
2006 Apr 01
2
Textile headaches
I have the newest version of RedCloth installed (3.0.4). I want the
following output:
<h1>Header</h1>
<p>Some text</p>
This is what I tried but no luck:
irb(main):002:0> require ''rubygems''
=> true
irb(main):004:0> require_gem ''RedCloth''
=> true
irb(main):006:0> RedCloth.new("h1. Header\r\nSome Text").to_html
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
2006 Jun 05
2
Bug in RedCloth or in my head?
Instead of emm-dashes I get struck-out text surrounded with single hyphens. RedCloth
3.0.4:
>> d = RedCloth.new "-- hyphens to the left of me, hyphens to the right, all should be emm
dashes --"
=> "-- hyphens to the left of me, hyphens to the right, all should be emm dashes --"
>> d.to_html
=> "<p><del>- hyphens to the left of me, hyphens
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
2011 Jan 13
9
spurious <li> generated when list followed by 3
RedCloth master generates a spurios <li> element when a numbered or undumbered list is followed by three or more newlines.
RedCloth.new("* one\n* two\n* three \n\n\n").to_html
#=> "<ul>\n\t<li>one</li>\n\t<li>two</li>\n\t<li>three</li>\n</ul>\n<li>"
# note extra trailing <li> outside <ul>
A colleague
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 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 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 Jul 03
0
redcloth 3.0.4 bug
irb(main):001:0> require ''redcloth''
=> true
irb(main):002:0> RedCloth.new("a^2^+b^2^=c^2^").to_html
=> "<p>a<sup>2^+b</sup>2<sup>=c</sup>2^</p>"
The output is not what I expect at all. Am I missing something or is this
actually a bug.
-------------- next part --------------
An HTML attachment was scrubbed...
2006 May 27
0
:filter_html and :hard_breaks makes <br> ...weird
hi!
never posted to a mailing list before so I hope this
is an appropriate use.
Love redcloth btw!
I guess I just have a bug report though... if I turn
on hard_breaks and filter_html, all the <br />s turn
into <br>s. weird. For now I''m just doing this which
is fine:
textilized = RedCloth.new(text, [ :filter_html,
:hard_breaks ])
return