https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292008-08-20T16:58:28ZRedmineRedmine - Defect #1416: Inline code with less-then/greater-than produces @lt; and @gt; respectivelyhttps://www.redmine.org/issues/1416?journal_id=44222008-08-20T16:58:28ZBrian Ericson
<ul></ul><p>Ran into the same thing. Simple workaround is to stop the inline, add the </>, and continue the inline (ending it at the next </> and resuming it afterward).</p>
<p>(ampersand)abc <123> xyz(ampersand) results in <code>abc <123> xyz</code></p>
<p>(ampersand)abc(ampersand) <(ampersand)123(ampersand)> (ampersand) xyz(ampersand) gives you <code>abc</code> <<code>123</code>> <code>xyz</code>, which is what you want.</p> Redmine - Defect #1416: Inline code with less-then/greater-than produces @lt; and @gt; respectivelyhttps://www.redmine.org/issues/1416?journal_id=44302008-08-21T03:22:24ZBrian Ericson
<ul></ul><p>Sorry -- "@" is not an (ampersand). Also, "add the ," should be "add the < or > characters," (if you follow a less than immediately by a greater than, redmine appears to not show it).</p> Redmine - Defect #1416: Inline code with less-then/greater-than produces @lt; and @gt; respectivelyhttps://www.redmine.org/issues/1416?journal_id=81742009-03-22T10:57:20ZJean-Baptiste Barth
<ul><li><strong>File</strong> <a href="/attachments/1728">redcloth_arobas.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/1728/redcloth_arobas.diff">redcloth_arobas.diff</a> added</li><li><strong>Affected version (unused)</strong> deleted (<del><i>0.7.1</i></del>)</li><li><strong>Affected version</strong> deleted (<del><i>0.7.1</i></del>)</li></ul><p>The problem is redcloth parses twice these characters ; the first time it escapes all "<" and ">", no problem about that, but the second it traduces resulting "&lt;" to "&amp;lt;" (and so on), which is incorrect. It seems to me it's a redcloth problem, so I patched recloth lib to avoid second parsing. See attachment and let me know your opinion about that.</p> Redmine - Defect #1416: Inline code with less-then/greater-than produces @lt; and @gt; respectivelyhttps://www.redmine.org/issues/1416?journal_id=142022010-02-10T20:34:15ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Category</strong> changed from <i>Wiki</i> to <i>Text formatting</i></li></ul> Redmine - Defect #1416: Inline code with less-then/greater-than produces @lt; and @gt; respectivelyhttps://www.redmine.org/issues/1416?journal_id=144312010-02-17T12:07:06ZAnthony Groyer
<ul></ul><p>This works fine for inline code with @ separators. For <pre> </pre> separators, this does not work.<br />Why not considering moving to RedCloth 4 that apparently fixes these 2 issues ?</p> Redmine - Defect #1416: Inline code with less-then/greater-than produces @lt; and @gt; respectivelyhttps://www.redmine.org/issues/1416?journal_id=144322010-02-17T12:09:51ZAnthony Groyer
<ul></ul><p>This works fine for inline code with <code> separators. For </code><<code>pre</code>> separators, this does not work.<br />Why not considering moving to RedCloth 4 that apparently fixes these 2 issues ?</p> Redmine - Defect #1416: Inline code with less-then/greater-than produces @lt; and @gt; respectivelyhttps://www.redmine.org/issues/1416?journal_id=147152010-02-26T17:09:11ZAnthony Groyer
<ul><li><strong>File</strong> <a href="/attachments/3257">redcloth3_3.0.4_escape.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3257/redcloth3_3.0.4_escape.diff">redcloth3_3.0.4_escape.diff</a> added</li></ul><p>In fact, the bug I described (with pre separators) appears when I use coderay-0.9.1 (for java syntax coloration) that I have copied manually in redmine/vendor/plugins.<br />I attached a patch of redcloth3.rb that seems to work.</p> Redmine - Defect #1416: Inline code with less-then/greater-than produces @lt; and @gt; respectivelyhttps://www.redmine.org/issues/1416?journal_id=150752010-03-12T10:49:57ZAnthony Groyer
<ul></ul><p>Anthony Groyer wrote:</p>
<blockquote>
<p>In fact, the bug I described (with pre separators) appears when I use coderay-0.9.1 (for java syntax coloration) that I have copied manually in redmine/vendor/plugins.<br />I attached a patch of redcloth3.rb that seems to work.</p>
</blockquote>
<p>This patch solves the issue when the < and > are between a <pre><pre><code class="..."> </code></pre></pre> tags but create a bug when they are used in <pre><pre> </pre></pre> tags.</p> Redmine - Defect #1416: Inline code with less-then/greater-than produces @lt; and @gt; respectivelyhttps://www.redmine.org/issues/1416?journal_id=150892010-03-12T15:13:54ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>Include code and less-then/greater-than produces @lt; and @gt; respectively</i> to <i>Inline code with less-then/greater-than produces @lt; and @gt; respectively</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>1.0.0 (RC)</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>The initial defect (< > inside inline code) is fixed by applying Jean-Baptiste's patch in <a class="changeset" title="Fixed: inline code with less-then/greater-than produces @lt; and @gt; (#1416)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3567">r3567</a>.<br />Anthony, your problem seems different and your patch breaks a few tests.</p> Redmine - Defect #1416: Inline code with less-then/greater-than produces @lt; and @gt; respectivelyhttps://www.redmine.org/issues/1416?journal_id=512112013-08-13T15:56:06ZLuc Vandenbroucke
<ul></ul><p>I do have about the same problem with lines starting with a space<br />like this</p>
<pre><code>&lt;VLAN&gt;</code></pre>