Ruby Issue Tracking System: Issueshttps://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-08-04T07:44:38ZRuby Issue Tracking System
Redmine Ruby master - Bug #8729 (Rejected): Fix character literals in documentationhttps://bugs.ruby-lang.org/issues/87292013-08-04T07:44:38Zhenrikhodne (Henrik Hodne)me@henrikhodne.com
<p>=begin<br>
(('('))This is my first ever patch to Ruby, tried to follow ((<this guide|URL:<a href="http://documenting-ruby.org/step-by-step-guide.html%3E" class="external">http://documenting-ruby.org/step-by-step-guide.html></a>)), hopefully I did everything right.((')'))</p>
<p>The RDoc tool seems to strip out the (({?})) in character literals, so (({?a})) turns into just (({a})). Not sure if this is the right way to fix it, but I went through files using this ag command to find places where a character literal was used:</p>
<p>ag "\s** .<em>[ (,]?\w" **/</em>.c</p>
<p>Prepending (({?})) to each character literal seemed to fix it, as only one (({?})) is stripped. My guess is that RDoc reads them as character literals and turns them into the characters they represent somehow?<br>
=end</p>