Project

General

Profile

Actions

Bug #8729

closed

Fix character literals in documentation

Added by henrikhodne (Henrik Hodne) over 10 years ago. Updated over 10 years ago.

Status:
Rejected
Assignee:
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-07-26 trunk 42177) [x86_64-darwin12.4.0]
[ruby-core:56367]

Description

=begin
(('('))This is my first ever patch to Ruby, tried to follow ((<this guide|URL:http://documenting-ruby.org/step-by-step-guide.html>)), hopefully I did everything right.((')'))

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:

ag "\s** .[ (,]?\w" **/.c

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?
=end


Files

Updated by zzak (zzak _) over 10 years ago

  • Status changed from Open to Rejected

This is a bug in RDOc, thank you for your patch but I cannot accept it.

Actions

Also available in: Atom PDF

Like0
Like0