Redcloth

As far as I can tell, Radiant seems to have the line break bug in
Redcloth. Is this true? Can it be fixed?

Keith B. wrote:

As far as I can tell, Radiant seems to have the line break bug in
Redcloth. Is this true? Can it be fixed?

After googling (like I should have done in the first place) I see that
-why has made it like this on purpose, unlike the textile I am used to.
Turning hard breaks on, at least as far as I can tell, makes everything
one big paragraph, with breaks in between. I need blocks of paragraphs,
with line breaks. I got it to work in Markdown, but one really prefer
Textile.

I know this has been a probem in Rails generally, but never have
personally found a good solution.

Any ideas?

Keith B. wrote:

After googling (like I should have done in the first place) I see that
-why has made it like this on purpose, unlike the textile I am used to.
Turning hard breaks on, at least as far as I can tell, makes everything
one big paragraph, with breaks in between. I need blocks of paragraphs,
with line breaks. I got it to work in Markdown, but one really prefer
Textile.

I know this has been a probem in Rails generally, but never have
personally found a good solution.

Could you give me an example of text that is being interpreted
incorrectly and the output?


John L.
http://wiseheartdesign.com

John W. Long wrote:

Could you give me an example of text that is being interpreted
incorrectly and the output?

John,

the text is very simple, just a list that should be given out as a
block:

MI 31.08. digi lounging
DO 01.09. rive gauche opening party
FR 02.09. csaba, crying soul production
SA 03.09. l'un est l'autre, deep'n sexy house

In Textile, it isn’t recognizing the breaks, as is usually the case with
(non-Rails) Textile. It comes out like this:

MI 31.08. digi lounging DO 01.09. rive gauche opening party FR 02.09. csaba, crying soul production SA 03.09. l'un est l'autre, deep'n sexy house

This is an on going problem in Rails, I have read about it before, but
rarely used Textile in a rails setting. I tried switching to hard breaks
and and while it did give me the break elements, it did give any p
elements, except for one big one around the text.

Does that make sense?

Keith B. wrote:

Does that make sense?

So to clarify, you give it the following:

MI 31.08. digi lounging
DO 01.09. rive gauche opening party
FR 02.09. csaba, crying soul production
SA 03.09. l’un est l’autre, deep’n sexy house

And expect:

MI 31.08. digi lounging
DO 01.09. rive gauche opening party
FR 02.09. csaba, crying soul production
SA 03.09. l'un est l'autre, deep'n sexy house

But instead get:

MI 31.08. digi lounging DO 01.09. rive gauche opening party FR 02.09. csaba, crying soul production SA 03.09. l'un est l'autre, deep'n sexy house

?


John L.
http://wiseheartdesign.com

John W. Long wrote:

Keith B. wrote:

Does that make sense?

So to clarify, you give it the following:

MI 31.08. digi lounging
DO 01.09. rive gauche opening party
FR 02.09. csaba, crying soul production
SA 03.09. l’un est l’autre, deep’n sexy house

And expect:

MI 31.08. digi lounging
DO 01.09. rive gauche opening party
FR 02.09. csaba, crying soul production
SA 03.09. l'un est l'autre, deep'n sexy house

But instead get:

MI 31.08. digi lounging DO 01.09. rive gauche opening party FR 02.09. csaba, crying soul production SA 03.09. l'un est l'autre, deep'n sexy house

?


John L.
http://wiseheartdesign.com

Yes, this is how it usually works in Textile, at least in Textpattern.
As Dean Allen wrote both, one would expect that that is the way it was
inteneded to work.

_why seems to have other feelings, but this is how it would ideally work
for me.

Keith B.

John W. Long wrote:

Keith B. wrote:

_why seems to have other feelings, but this is how it would ideally work
for me.

Could you point me to a url about this?


John L.
http://wiseheartdesign.com

I meant to include this, but forgot:

http://redhanded.hobix.com/inspect/usingRedcloth3.html

He states that you can switch hard breaks on, but when I try this, it
disables paragraphs. Oh well…

Keith BIngman

Keith B. wrote:

_why seems to have other feelings, but this is how it would ideally work
for me.

Could you point me to a url about this?


John L.
http://wiseheartdesign.com

John W. Long wrote:

Keith B. wrote:

I meant to include this, but forgot:

http://redhanded.hobix.com/inspect/usingRedcloth3.html

He states that you can switch hard breaks on, but when I try this, it
disables paragraphs. Oh well…

I think I’m going to side with _why for now. In the meantime you can
just use
tags between lines.


John L.
http://wiseheartdesign.com

I assumed this one be the response. Unfortunately, this is not a site
for me… one of the pesky customers who doesn’t want to learn…! I
have a solution though. Thanks for looking into it.

Keith B.

Keith B. wrote:

I meant to include this, but forgot:

http://redhanded.hobix.com/inspect/usingRedcloth3.html

He states that you can switch hard breaks on, but when I try this, it
disables paragraphs. Oh well…

I think I’m going to side with _why for now. In the meantime you can
just use
tags between lines.


John L.
http://wiseheartdesign.com

RedCloth is focused on Textile formatting (with Markdown practically
as an aside).

I suggest using BlueCloth for Markdown:
dev(E)iate

In my experience, it works much better, including a fix for this line
break problem:

Two spaces at the end of a line create a
,
otherwise single carriage returns are ignored.

Two carriage returns still delimit paragraphs.

*Mars

On Aug 17, 2006, at 07:11, Keith B. wrote:

As far as I can tell, Radiant seems to have the line break bug in
Redcloth. Is this true? Can it be fixed?


Posted via http://www.ruby-forum.com/.


Radiant mailing list
[email protected]
http://lists.radiantcms.org/mailman/listinfo/radiant

( <> … <> )

MarsHall wrote:

RedCloth is focused on Textile formatting (with Markdown practically
as an aside).

I suggest using BlueCloth for Markdown:
dev(E)iate

Radiant does use BlueCloth for Markdown. We were discussing some
differences between the way RedCloth formats Textile and the way it
works with the original Textile library.


John L.
http://wiseheartdesign.com

John W. Long wrote:

Keith B. wrote:

I meant to include this, but forgot:

http://redhanded.hobix.com/inspect/usingRedcloth3.html

He states that you can switch hard breaks on, but when I try
this, it disables paragraphs. Oh well…

I think I’m going to side with _why for now. In the meantime
you can just use
tags between lines.

You can also insert one (or more) spaces right before the
newline. RedCloth will convert /\s+$/ to a
. This is
also ``standard’’ Textile. Try it out:

Textism: Tools: Textile

-Drew