Sorry, I'm not able to follow your examples. Would you mind putting the
input in text files and attaching them. Hopefully that will work. You're
also welcome to use the redcloth command line tool and copy the input and
output like so:
~ $ redcloth
This is a test of the h4:
h4. Lorem ipsum dolor sit amet
That's all. Thank you.
This is a test of the h4:
Lorem ipsum dolor sit amet
That’s all. Thank you.
~ $
You can send an EOF (which it waits for to send the output) by pressing ^D
(^Z on Windows)
I'm working on a rewrite of RedCloth and as part of that I will have a form
to fill out to provide an example when making a bug report. Expect great
things soon!
Jason
On Sun, May 8, 2011 at 1:57 PM, Richard Lloyd wrote:
> Sorry, I set before I finished.
>
> The right way appears to be:
>
> BLANK LINE
> h4. **Section Title**
> BLANK LINE
>
> Failure to end this construction with a blank line will cause whatever
> following text (up to the next blank line) to be included in the *
> ...
* construction in the template.
>
> This behaviour differs from the paragraph formatting where no blank line is
> needed, only a single newline.
>
> BLANK LINE
> p. Lots and lots (many lines) of text. The paragraph will only end with
> the first newline.
>
> Hope that helps.
>
> On Sun, May 8, 2011 at 3:46 PM, Richard Lloyd wrote:
>
>> Dan,
>>
>> I haven't scrubbed the code to see why but I know if I neglect to p> blank line in before the *h4.* it will not be converted to *...
*in the template an will instead be passed through as plain text to the
>> document.
>>
>> I've observed this behavior at least back to 4.2.2 and found it to apply
>> as well to other alphadot* *constructions (like* p.*).
>>
>> Rick
>>
>> On Sun, May 8, 2011 at 2:27 PM, Dan Lamet wrote:
>>
>>> I have a couple of apps in which I've used RedCloth for a number of
>>> years. I'm in the process of upgrading those apps to Rails 3 & RedCloth
>>> 4.2.7. I'm getting a condition where certain tags are converted and
>>> others ignored. Take the following snippet as an example:
>>>
>>> h4. **Section Title**
>>>
>>> Some body text
>>>
>>> That now converts to
>>>
>>> h4. Section Title
>>> Some body text
>>>
>>> The bold is recognized and converted, but the header is ignored, and the
>>> line break is not inserted. How is this possible?
>>>
>>> Thanks, Dan
>>>
>>> --
>>> Posted via http://www.ruby-forum.com/.
>>> _______________________________________________
>>> Redcloth-upwards mailing list
>>> Redcloth-upwards at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/redcloth-upwards
>>>
>>
>>
>
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From lists at ruby-forum.com Thu May 12 17:01:53 2011
From: lists at ruby-forum.com (Dan Lamet)
Date: Thu, 12 May 2011 23:01:53 +0200
Subject: Selective RedCoth Failure
In-Reply-To: <1faeb85af525dd80b86a10aff3cc12c0@ruby-forum.com>
References: <1faeb85af525dd80b86a10aff3cc12c0@ruby-forum.com>
Message-ID: <3220778249f096e9a12b8f86a6ed7fb9@ruby-forum.com>
Sorry for the delay. I was out sick.
Here's the source file as requested. Note that this file worked fine,
and still does so on my posted RoR 2.x site at digibunker.com. It's
only on my rebuilt RoR 3.x app that it fails.
Thanks, Dan
Attachments:
http://www.ruby-forum.com/attachment/6194/DigiBunker_FAQ.txt
--
Posted via http://www.ruby-forum.com/.
From jg at jasongarber.com Fri May 13 10:16:01 2011
From: jg at jasongarber.com (Jason Garber)
Date: Fri, 13 May 2011 08:16:01 -0600
Subject: Selective RedCoth Failure
In-Reply-To: <3220778249f096e9a12b8f86a6ed7fb9@ruby-forum.com>
References: <1faeb85af525dd80b86a10aff3cc12c0@ruby-forum.com>
<3220778249f096e9a12b8f86a6ed7fb9@ruby-forum.com>
Message-ID:
Thanks for sending over the file. Why is everything indented? Somehow, it
still works. The output looks just fine to me on RedCloth 4.2.7
h4. What is DigiBunker?
DigiBunker is so simple and saves your files on a secure and private server,
> meaning you get protection from hard drive failure, theft or property
> catastrophe.
h4. How does DigiBunker save me money?
We save you money by restoring your lost digital media at a minimal cost. If
> you’ve invested hundreds or thousands of dollars on your digital media
> library, you wouldn’t want to have to spend the same amount of money
> to replace those files would you? Lets suppose you have a music library of
> about 500 songs, if you lost all of those songs, it would cost you $500 to
> replace them. DigiBunker will replace your songs for pennies on the dollar,
> literally.
h4. How does your service work?
Our service offers you a program that identifies when you download a new
> music, movie, or video game, and will ask you if you want to pay to save the
> file from loss. You can also set our service to automatically back up all
> your digital media downloads to your computer without disrupting your
> computer use or system.
h4. How much does DigiBunker cost?
DigiBunker cost pennies, literally! Our services are offered at a price
> that’s very affordable to you. Once you open an account, you choose
> how much to spend and what files you want to pay to save. There are no
> monthly fees, you can start your account with only a $10.00 minimum starting
> account balance. DigiBunker automatically Calculates your exact amount of
> media files you have to store and gives you the full price to store them.
> The cost is $.01 cents per music file and $1.00 per movie and video game and
> your photos are free up to 2GB.
h4. Can I view my saved files?
Yes, you can see your saved files at
Digibunker.com any time you want. You can see the date they were save and
> they are categorized by file type.
h4. Can I retrieve single files?
Yes, DigiBunker is a digital media file backup service that’s here for
> you if you experience an extreme computer loss, such as a hard drive crash,
> theft or catastrophe. Think of as your guardian angel, you might need us for
> the small stuff, and we’ve definitely got your back when you really
> need a helping hand to replace your lost files.
h4. What do I do if I lose my digital files I have at DigiBunker?
It’s simple, you file a claim, pay a small processing fee and once
> we’ve received your request, you can select how you want to retrieve
> your files. You can retrieve them via download to your computer, or we will
> send you an external device to restore your files, which you simply return
> back to us once your finished re-installing your lost files.
h4. How long will you save my files?
DigiBunker will save your files for 5 years from the date you chose to save
> the file with us. You must renew your account every 5 years with a small
> renewal fee. You can also cancel your account at any time.
h4. Are all my saved files private?
Yes your files are private … DigiBunker will not observe your files
> and we will never share your saved file information with any third party
> organization PERIOD.
~ $ redcloth --version
RedCloth 4.2.7
On Thu, May 12, 2011 at 3:01 PM, Dan Lamet wrote:
> Sorry for the delay. I was out sick.
>
> Here's the source file as requested. Note that this file worked fine,
> and still does so on my posted RoR 2.x site at digibunker.com. It's
> only on my rebuilt RoR 3.x app that it fails.
>
> Thanks, Dan
>
> Attachments:
> http://www.ruby-forum.com/attachment/6194/DigiBunker_FAQ.txt
>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From sutniuq at gmx.net Fri May 27 12:25:59 2011
From: sutniuq at gmx.net (Quintus)
Date: Fri, 27 May 2011 18:25:59 +0200
Subject: Can't install RedCloth gem, fails to compile
Message-ID: <4DDFD097.1010303@gmx.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi there,
I'm trying to install the RedCloth gem on my Arch Linux (64bit) system,
but hadn't had success yet, RedCloth doesn't seem to compile. Here's the
installation output:
======================================
$ LANG=en_US.utf8 sudo gem install RedCloth
Building native extensions. This could take a while...
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.
/opt/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for main() in -lc... yes
creating Makefile
make
gcc -I. -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux
- -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward
- -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -fPIC -O3 -ggdb
- -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
- -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC
- -O0 -Wall -Werror -o redcloth_inline.o -c redcloth_inline.c
ragel/redcloth_inline.c.rl: In function ?red_block?:
ragel/redcloth_inline.c.rl:99:9: error: variable ?attr_regs? set but not
used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make: *** [redcloth_inline.o] Error 1
Gem files will remain installed in
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.7 for
inspection.
Results logged to
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.7/ext/redcloth_scan/gem_make.out
======================================
Here's the content of the gem_make.out file:
=======================================
$ cat
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.7/ext/redcloth_scan/gem_make.out
/opt/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for main() in -lc... yes
creating Makefile
make
gcc -I. -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux
- -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward
- -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -fPIC -O3 -ggdb
- -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
- -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC
- -O0 -Wall -Werror -o redcloth_inline.o -c redcloth_inline.c
ragel/redcloth_inline.c.rl: In function ?red_block?:
ragel/redcloth_inline.c.rl:99:9: error: variable ?attr_regs? set but not
used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make: *** [redcloth_inline.o] Error 1
=======================================
And here's some information about my setup:
=======================================
? quintus at hades => ~
$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
? quintus at hades => ~
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.4
- RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-linux]
- INSTALLATION DIRECTORY: /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /opt/rubies/ruby-1.9.2-p180/bin/ruby
- EXECUTABLE DIRECTORY: /opt/rubies/ruby-1.9.2-p180/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1
- /home/quintus/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--format-executable"
- "update" => "--format-executable"
- "rdoc" => "--format=hanna"
- REMOTE SOURCES:
- http://rubygems.org/
? quintus at hades => ~
$ LANG=en_US.utf8 gcc --version
gcc (GCC) 4.6.0 20110513 (prerelease)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
? quintus at hades => ~
$ uname -a
Linux hades 2.6.38-ARCH #1 SMP PREEMPT Fri May 13 09:24:47 CEST 2011
x86_64 AMD Athlon(tm) II X4 640 Processor AuthenticAMD GNU/Linux
? quintus at hades => ~
$
=======================================
It seems that RedCloth's Makefile instructs GCC to treat warnings as
errors (as it can be seen in the build output) and then a warnings
occurs during compilation, causing GCC to abort compilation.
Is there any way to ignore this restriction?
Valete,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJN39CKAAoJELh1XLHFkqhaLlcH/2rOylKJvfQgnTzD7FIbVD6x
eA1W/tR5JZWFWQRbRX/7aZSu7a2MoK9dtS8j/s1UC8mLrs9P2HYZMiWAS3uDGVRw
MY6d0ATyFbAYGuNGYBpdN1k86c7cGD93Dt5CDglDOqdWWcMownV6Ziwi45Wdctcn
1VYyWYBs2JfPe0NCroTqNhJUZrh79HiRf3Gdj5fs3KiI7W7PPdyA/b1yQKmZ+CDs
v0GGQ2dn5iQTVphH2AgBAG8sCZZ/NuzE0PXxb44+EIVRI8cRstBr2nEqyhekv9yw
Crkjxmv3JnCEZQ2thSJyaUUCqwLO+N9yVoy6IpnElAQOxD8/tFrbfpP+QxV2Tig=
=RyzJ
-----END PGP SIGNATURE-----
From jason at hybd.net Fri May 27 18:43:58 2011
From: jason at hybd.net (Jase)
Date: Fri, 27 May 2011 23:43:58 +0100
Subject: Can't install RedCloth gem, fails to compile
In-Reply-To: <4DDFD097.1010303@gmx.net>
References: <4DDFD097.1010303@gmx.net>
Message-ID: <1306536239.13811.1.camel@jase-ubuntu>
Yes, this has been an issue for me as well.
I've generally ignored this by forcing my Gemfile in Rails to use 4.2.3,
which is obviously a less than ideal, but usable workaround.
Jase.
On Fri, 2011-05-27 at 18:25 +0200, Quintus wrote:
> Hi there,
>
> I'm trying to install the RedCloth gem on my Arch Linux (64bit) system,
> but hadn't had success yet, RedCloth doesn't seem to compile. Here's the
> installation output:
>
> ======================================
> $ LANG=en_US.utf8 sudo gem install RedCloth
> Building native extensions. This could take a while...
> ERROR: Error installing RedCloth:
> ERROR: Failed to build gem native extension.
>
> /opt/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
> checking for main() in -lc... yes
> creating Makefile
>
> make
> gcc -I. -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux
> -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward
> -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -fPIC -O3 -ggdb
> -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
> -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC
> -O0 -Wall -Werror -o redcloth_inline.o -c redcloth_inline.c
> ragel/redcloth_inline.c.rl: In function ?red_block?:
> ragel/redcloth_inline.c.rl:99:9: error: variable ?attr_regs? set but not
> used [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
>
> make: *** [redcloth_inline.o] Error 1
>
>
> Gem files will remain installed in
> /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.7 for
> inspection.
> Results logged to
> /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.7/ext/redcloth_scan/gem_make.out
> ======================================
>
> Here's the content of the gem_make.out file:
>
> =======================================
> $ cat
> /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.7/ext/redcloth_scan/gem_make.out
> /opt/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
> checking for main() in -lc... yes
> creating Makefile
>
> make
> gcc -I. -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux
> -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward
> -I/opt/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I. -fPIC -O3 -ggdb
> -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
> -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC
> -O0 -Wall -Werror -o redcloth_inline.o -c redcloth_inline.c
> ragel/redcloth_inline.c.rl: In function ?red_block?:
> ragel/redcloth_inline.c.rl:99:9: error: variable ?attr_regs? set but not
> used [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
>
> make: *** [redcloth_inline.o] Error 1
> =======================================
>
> And here's some information about my setup:
>
> =======================================
> ? quintus at hades => ~
> $ ruby -v
> ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
> ? quintus at hades => ~
> $ gem env
> RubyGems Environment:
> - RUBYGEMS VERSION: 1.8.4
> - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-linux]
> - INSTALLATION DIRECTORY: /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1
> - RUBY EXECUTABLE: /opt/rubies/ruby-1.9.2-p180/bin/ruby
> - EXECUTABLE DIRECTORY: /opt/rubies/ruby-1.9.2-p180/bin
> - RUBYGEMS PLATFORMS:
> - ruby
> - x86_64-linux
> - GEM PATHS:
> - /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1
> - /home/quintus/.gem/ruby/1.9.1
> - GEM CONFIGURATION:
> - :update_sources => true
> - :verbose => true
> - :benchmark => false
> - :backtrace => false
> - :bulk_threshold => 1000
> - "install" => "--format-executable"
> - "update" => "--format-executable"
> - "rdoc" => "--format=hanna"
> - REMOTE SOURCES:
> - http://rubygems.org/
> ? quintus at hades => ~
> $ LANG=en_US.utf8 gcc --version
> gcc (GCC) 4.6.0 20110513 (prerelease)
> Copyright (C) 2011 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> ? quintus at hades => ~
> $ uname -a
> Linux hades 2.6.38-ARCH #1 SMP PREEMPT Fri May 13 09:24:47 CEST 2011
> x86_64 AMD Athlon(tm) II X4 640 Processor AuthenticAMD GNU/Linux
> ? quintus at hades => ~
> $
> =======================================
>
> It seems that RedCloth's Makefile instructs GCC to treat warnings as
> errors (as it can be seen in the build output) and then a warnings
> occurs during compilation, causing GCC to abort compilation.
> Is there any way to ignore this restriction?
>
> Valete,
> Marvin
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards
From sutniuq at gmx.net Sat May 28 04:03:57 2011
From: sutniuq at gmx.net (Quintus)
Date: Sat, 28 May 2011 10:03:57 +0200
Subject: Can't install RedCloth gem, fails to compile
In-Reply-To: <1306536239.13811.1.camel@jase-ubuntu>
References: <4DDFD097.1010303@gmx.net> <1306536239.13811.1.camel@jase-ubuntu>
Message-ID: <4DE0AC6D.1080803@gmx.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 28.05.2011 00:43, schrieb Jase:
> Yes, this has been an issue for me as well.
>
> I've generally ignored this by forcing my Gemfile in Rails to use 4.2.3,
> which is obviously a less than ideal, but usable workaround.
>
> Jase.
Thanks, version 4.2.3 compiles as expected:
=======================================================
? quintus at hades => ~
$ sudo gem install RedCloth -v 4.2.3
Passwort:
Fetching: RedCloth-4.2.3.gem (100%)
Building native extensions. This could take a while...
Successfully installed RedCloth-4.2.3
1 gem installed
Installing ri documentation for RedCloth-4.2.3...
Installing RDoc documentation for RedCloth-4.2.3...
? quintus at hades => ~
$
=======================================================
I've just seen that the issue has already been reported on RedCloth's
issue tracker at
http://jgarber.lighthouseapp.com/projects/13054/tickets/219-427-installation-issue-on-arch-linux-x64
, so hopefully it gets fixed in a future version (easiest maybe not to
use -Werror?).
Thanks again!
Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJN4KxmAAoJELh1XLHFkqhail0IAJ1benw4oA/In/j8W1HAlOYQ
+IACEwsWRtb0r6hekYkWfr6gCQ8ADScTRb+4ynYVjIUOI2ewP5D5B/S9WY6zx5XS
EOMUe9laXAbnSWORsWEpjTQ0ZUTC0+0MCmnqPVH/oeMqm6oiC2XoyjczmGytFs5W
qjV0jxXy7wO+RA9qEoZSbPDh3GZQR2GnzK6sKUs6RcgV93wSbzCbU8v1sv0HioJv
JAu9+9s0+iQlZQzPSRFbdikpWaKZ4nbY+qHVCAycGIkDoazKqn4GnmNzefleGeQo
RZeTLFRWUKg6lO/TbykXJ/A0JL5VC7Vr0mKa8UtqZKIv4toVOHD6an+MOc6q9ug=
=8hw0
-----END PGP SIGNATURE-----