Displaying 20 results from an estimated 1000 matches similar to: "Textilize problems with line breaks"
2005 Dec 21
8
textilize - redcloth
Hi,
I''m using textilize with redcloth 3.0.4. Everything works best except
that paragraphs are not translated as an HTML paragraph
When I write something like:
*first paragraph*
second paragraph
the output is without paragraph:
*first paragraph*
second paragraph
Any help??? Thanks
Jörg
2006 Mar 10
2
textilize != RedCloth.new ?
For me, textilize(stuff) produces nasty stuff - <br>''s instead of
enclosing <p>''s and some closing <h*>''s are missing. RedCloth.new(stuff)
works fine though. Isn''t textilize supposed to produce the same output?
Or do I need to tweak something?
Joe
--
Posted via http://www.ruby-forum.com/.
2008 Oct 06
2
textilize with --- (3 dashes) removes text
Hi,
using --- (3 dashes) at the end of a string that is textilized,
results in a single hr tag without any text. This seems weird to me.
Am I overlooking something?
>> av = ActionView::Base.new
>> av.textilize("sometext ---")
=> "<hr />"
Cheers,
Jan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
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’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?
--
2004 Jun 28
2
Would this work?
I am trying to implement a rollover of extensions.
exten => 3000,1,GotoIf($[${line1} = Congestion]?3:2)
exten => 3000,2,Dial(${line1},15,rt)
exten => 3000,3,GotoIf($[${line2} = Congestion]?5:4)
exten => 3000,4,Dial(${line2},15,rt)
exten => 3000,5,GotoIf($[${line3} = Congestion]?7:6)
exten => 3000,6,Dial(${line3},15,rt)
exten => 3000,7,GotoIf($[${line4} = Congestion]?1:8)
2008 Mar 15
8
Now what?
> $ rake test
> /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/
> rake-0.7.3/lib/rake/rake_test_loader.rb" "test/test_formatters.rb"
> "test/test_parser.rb"
> Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/
> rake_test_loader
> Started
>
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
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 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
2009 Nov 26
1
Barplot with confidence intervals
I have a file in the following format:
Scenario1 Scenario1CIL Scenario1CIU Scenario2 Scenario2CIL Scenario2CIU
60 57 62 45 48 50
110 101 111 51 50 52
120 117 122 64 62 66
192 190 194 79 75 79
where:
First column = Scenario1 mean value
Second column = Scenario1 Low Confidence Interval
Third column = Scenario1 Upper Confidence Interval
Fourth column = Scenario2 mean value
Fifth column =
2006 Sep 28
1
help on plots
Dear friends,
I met a problem on plotting.
My dataset is :
year MHBC LHBC MHRC LURC
1993 11.75 4.50 0.43 0.46
1994 7.25 1.25 0.35 0.51
1995 8.67 2.17 0.54 0.44
1996 2.67 1.33 0.78 0.47
1997 3.42 4.92 0.69 0.48
1998 1.92 3.08 0.72 0.54
1999 2.33 2.58 0.74 0.41
2000 5.75 4.50 0.45 0.50
2001 3.75 4.42 0.52 0.47
2002 2.33
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
2010 Jun 29
0
Migrating from key system to asterisk
I currently have 4 lines coming into the house. We currently have an Avaya standard analog key system which has served us well, but running extensions is a major pain and requires a dedicated run per extension. I have ethernet run throughout the house though.
The first two lines are "home" lines, however line1 I use for my consulting during the day, and line2 is used by my wife for
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
2006 Mar 07
6
Anybody use Red|Blue Cloth?
Does anybody use and prefer Redcloth (or bluecloth, which appears to be
alpha)? Does it affect performance much? Is there a way to get it to
automatically process templates without having to call textilize?
Thanks,
Joe
--
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 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.)
*
2010 Jul 16
2
a issue about the qutation mark?
Following is a function that I wrote (It is working well). It's a simple one,
nothing complicated. The only question that I have is a qutation mark issue,
I guess.
#############################################
funcname <- function(trait.file){ #line1
setwd('/root/subroot') # line 2
load('imge.RData')
2004 Jan 13
0
inbound call routing problem - RESOLVED
Thanks we just figure it out a bit ago. It's amazing how simple some
things are when you just ask - and then realized that you were making it
too hard to begin with!! :-)
Lane Hoskins, MCP
Network Engineer
540.767.7626
-----Original Message-----
From: Jared Smith [mailto:jsmith@drgutah.com]
Sent: Tuesday, January 13, 2004 10:59 AM
To: asterisk-users@lists.digium.com
Subject: Re:
2005 Dec 24
2
Textilize on ajax update
I''m writing a basic to-do
application. I''m using a form_remote_tag to submit the entry to my
controller, which then returns the entry to be displayed in the table
of to-do items. However, I''d like to be able to "textilize" the entry
without having to reload the page. Is there any way to have my ajax
function textilize the text before displaying it in the list?