Forum: Redcloth more failing tests in trunk/test/code.yml

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Stephen B. (Guest)
on 2008-03-23 18:11
(Received via mailing list)
Found another problem:

This:

This paragraph is aligned left but if you add this:
%{color:blue}@p>.@% to the beginning it will be aligned right.

Should produce:

<p>This paragraph is aligned left but if you add this: <span
style="color:blue;"><code>p>.</code></span> to the beginning it will
be aligned right.</p>

But instead produces:

<p style="text-align:right;">This paragraph is aligned left but if
you add this:  <span style="color:blue;"><code>p&gt;.</code></span>
to the beginning it will be aligned right.</p>

I feel a little bad just sending list messages about problems but of
course the reason I am is because I was inspired to use RedCloth
because of all the great work you've done!

There are now two added tests in the patch below (also attached):

Index: trunk/test/code.yml
===================================================================
--- trunk/test/code.yml  (revision 284)
+++ trunk/test/code.yml  (working copy)
@@ -7,6 +7,15 @@
  in: 'Please type @cat "file.txt" > otherfile.txt@ at the prompt.'
  html: '<p>Please type <code>cat "file.txt" &gt; otherfile.txt</code>
at the prompt.</p>'
  ---
+name: more inlne code escapement
+in: 'Regex-based string substitution with Ruby\'s gsub!:
@"123<789".gsub!(/</, "") => "123789"@'
+html: '<p>Regex-based string substitution with Ruby&#8217;s gsub!:
<code>123&lt;789".gsub!(/&lt;/, "") =&gt; "123789"</code></p>'
+---
+name: inlne code escapement describing textile paragraph styling
+in: 'This paragraph is aligned left but if you add this:
%{color:blue}@p>.@% to the beginning it will be aligned right.'
+html: '<p>This paragraph is aligned left but if you add this: <span
style="color:blue;"><code>p>.</code></span> to the beginning it will
be aligned right.</p>'
+or:blue;"><code>p&gt;.</code></span> to the beginning it will be
aligned right.</p>
+---
  name: escaping in blockcode
  in: 'bc. This is within a block of code, so < and > should be
entities.  You can talk about a <p class="foo"> tag if you wish and
it will be properly escaped.'
  html: '<pre><code>This is within a block of code, so &lt; and &gt;
should be entities.  You can talk about a &lt;p class="foo"&gt; tag
if you wish and it will be properly escaped.</code></pre>'
This topic is locked and can not be replied to.