Displaying 20 results from an estimated 7000 matches similar to: "Formatting a list from the DB"
2008 Mar 23
1
redcloth gem ragel code doesn''t build in jruby
I tried to install RedCloth-3.274 in jruby (trunk) but the install
failed when RedCloth tried to build the C code using mkmf:
I forget whether SuperRedcloth ever did build in JRuby??
I know Hpricot (which also uses ragel which can compile to Java code)
works in JRuby -- with the patch here:
https://code.whytheluckystiff.net/hpricot/ticket/131)
I might be confusing the two ...
FYI: If you
2006 May 05
4
Is sanitize() strong enough to protect me from XSS?
Haven''t been able to find a good enough answer on whether using
sanitize() is enough to really protect me from XSS attacks
I basically have a blog page that I want to allow people to display
comments on but would like to allow html tags to be posted on the
comments, these could html tags like the imageshack img tags, youtube
player, photobucket img tags etc
any other approaches or
2006 Mar 27
5
RedCloth and Rails
Has anyone had any experience with RedCloth for rails. It is a textile
system. I haven''t spot checked the code and was wondering if it caused
any lockups or other issues.
http://whytheluckystiff.net/ruby/redcloth/
--
Berlin Brown
(ramaza3 on freenode)
http://www.newspiritcompany.com
also checkout alpha version of botverse:
http://www.newspiritcompany.com:8086/universe_home
2005 Nov 16
4
RedCloth repository moved to SVN
I''ve been getting increasing resistance from helpers who prefer
Subversion over CVS. I feel that it''s slowing down development. So,
done. Mailing lists, releases, news will still be at Rubyforge. Bug
tracking will likely move to the new repository soon as well.
The new repository is at: http://code.whytheluckystiff.net/
Checkout RedCloth from
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
2006 Mar 29
6
Comments for a blog
Hello,
I''m making a blog and I need some function that convert the text
writed for a user in a textarea into a formated text.
I think to use h, but it forget paragraph breaks and I
like allow some tags.
By
Daniel
2006 Jun 25
1
brief svn download and install instructions?
Could someone please give some instructions for downloading, building,
and installing redcloth from svn?
To retrieve it, I''ve tried the basic:
svn checkout svn+ssh://code.whytheluckystiff.net/svn/redcloth
and
svn checkout svn+ssh://anonymous at code.whytheluckystiff.net/svn/redcloth
but I just get a connection refused message.
Thanks,
---John
2005 Nov 22
1
Patches?
I have a few of patches for RC.
A quick fix for a bug in clean_html, an improvement to clean_html to
sanitize more links, and the addition of "filter_classes" and
"filter_ids".
What should I do? Email them to someone? why? (sorry, couldn''t avoid it)
I actually don''t have separate patches for each, but could do them if
needed. The first two are
2006 Mar 09
2
How to keep formatting of text in textarea?
Hi!
I''ve got a form for creating news and i''d like to keep formatting of the
text in the textarea - if user presses enter twice, or presses space ten
times it should be visible when editing or showing the news.
Probably i should add before_save filter and some regexps for adding
html tags, but i know almost nothing about regexp. Maybe there''s a
simpler way also.
2005 Nov 24
1
Warnings on tests
Lucas, tell me about changeset 103.
<http://code.whytheluckystiff.net/redcloth/changeset/103>
The require lines are causing a pile of warnings. Were you having
problems with the previous revision?
_why
2006 Apr 24
1
Just a couple questions on how I should go about
> I need a simple blog with categories and comments and an archive. I want a
> nice posting system, but don''t want it in HTML. Is there something I can add
> or make, kind of like BBCODE?
http://whytheluckystiff.net/ruby/redcloth/
http://wiki.rubyonrails.org/rails/pages/RedCloth
> I pretty much know what else I have to do, but there is one more thing. A
> client section.
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 Mar 24
3
Patch for superredcloth to enable textile table headers
SuperRedCloth v1.160 and svn rev 163 don''t work the textile commands
that specify table headers instead of table data.
Here''s a simple test:
require ''superredcloth''
w = "|_. a|_. b|_. c|\n|1|2|3|"
h = SuperRedCloth.new(w).to_html
puts h
<table>
<tr>
<td>_. a</td>
2006 Apr 27
2
Red cloth
what is the require I must put in my enviremnt to use red cloth?
--
Posted via http://www.ruby-forum.com/.
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
>
2008 Feb 21
5
Question about entities
1.) What is everyone''s preference on NCRs or character entities?
Textile 2 uses decimal NCRs, so a less-than character becomes <
whereas RedCloth (3.04 and prior) used <. What is your
preference? It gets tough because ' (a straight single quote)
doesn''t have a character entity equivalent.
2.) How do you feel about encoding characters like quotes
2006 Mar 06
2
Convert \n newlines to html <br>
I have a textarea that accepts a shipping address, so I need to convert
newlines when it is displayed as html. I am new to ruby, and rails so an
example would be appreciated. I want to do this in the ''display'', not
the stored text if possible, since I use the newlines when generating a
pdf.
Thanks.
charley
--
Posted via http://www.ruby-forum.com/.
2007 Oct 04
3
Rsync not able to transfer over jumbo frames?
Hello,
I have 2 network cards on my 2 of my computers that I am trying to
transfer data on. The second network cards are specifically for
transferring files between the two so I enabled jumble frames by
setting the mtu to 9000. I seem to be able to connect between the two
via ssh and other methods using this setting so I thought everything
was working right until I tried rsync. I used the
2005 Jun 24
4
text file output
Hello,
I would like to create an ascii text file that looks exactly like the
Console output of a split() action. I have tried save, dput, dump,
write.foreign and write to no avail. The resulting text files are a
jumble of data that I would have to edit heavily in order to use it for
my proposed purpose. How can I, short of copying and pasting the
contents of the console (which will not work
2009 Jan 03
2
Linux words file
Dear R People:
I have a small function that solves the "Jumble" puzzle from the
newspaper (I know...big deal). It uses the the Linux "words" file.
My question is: is there a similar words file for Windows, please?
Thanks,
Happy New (Gnu) Year.
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston -