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>.</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"
> 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’s
gsub!:
<code>123<789".gsub!(/</, "") =>
"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>.</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
< and >
should be entities. You can talk about a <p
class="foo"> tag
if you wish and it will be properly escaped.</code></pre>''
-------------- next part --------------
A non-text attachment was scrubbed...
Name: two_new_test_for_code_redcloth_r284.diff
Type: application/octet-stream
Size: 1444 bytes
Desc: not available
Url :
http://rubyforge.org/pipermail/redcloth-upwards/attachments/20080323/aef26f43/attachment.obj