Hi,
I am using Rails 1.2.3 and RedCloth-3.0.3.
I am using redcloth to format user enter text to html: textilize(@text).
I have these issues:
- Cannot leave spaces in front of a new line: I mean if i try something
like this:
Case a) Input:
Few spaces before this line
Output:
Few spaces before this line
spaces are removed
Case b) Input
Normal first line
Second line has few spaces in front
Output:
Normal first line
Second line has few spaces in front (In a smaller font)
Any suggestions?
Regards,
Sandeep G
Redcloth is poop. I have a prefrence for textile but switched to
markdown as redcloth had so many problems.
Check out Blucloth gem
Hi,
2007/11/12, Sandeep G. [email protected]:
- Cannot leave spaces in front of a new line
Take a look at the textile quick reference
http://hobix.com/textile/quick.html. You can use
p((. left ident 2em
to indent a line.
Lutz
Adam J. wrote:
Redcloth is poop. I have a prefrence for textile but switched to
markdown as redcloth had so many problems.
Check out Blucloth gem
Hi Adam,
Is Bluecloth working fine for you. Heard bluecloth is 20% more slower
and crashes at times? Have u faced any?
Regards,
Sandeep G
Lutz H. wrote:
Hi,
2007/11/12, Sandeep G. [email protected]:
- Cannot leave spaces in front of a new line
Take a look at the textile quick reference
http://hobix.com/textile/quick.html. You can use
p((. left ident 2em
to indent a line.
Lutz
Thanks for the input.
But I don’t want users to force the identation. When users type in the
text_field, if they ident with spaces, I should be able to display the
same way.
In fact , I am storing user entered text in DB. In DB i have the
identation intact. Only when i display with redcloth, it gets bad …
Any suggestion here?
Sandeep G