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: 1. 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Redcloth is poop. I have a prefrence for textile but switched to markdown as redcloth had so many problems. Check out Blucloth gem On 12/11/2007, at 9:12 PM, Sandeep Gudibanda wrote:> > 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: > > 1. 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 > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, 2007/11/12, Sandeep Gudibanda <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:> 1. Cannot leave spaces in front of a new lineTake 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Lutz Horn wrote:> Hi, > > 2007/11/12, Sandeep Gudibanda <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>: >> 1. 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. > > LutzThanks 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Adam Jones wrote:> Redcloth is poop. I have a prefrence for textile but switched to > markdown as redcloth had so many problems. > Check out Blucloth gemHi Adam, Is Bluecloth working fine for you. Heard bluecloth is 20% more slower and crashes at times? Have u faced any? Regards, Sandeep G -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---