Project

General

Profile

Bug #8729

Fix character literals in documentation

Added by henrikhodne (Henrik Hodne) about 6 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Normal
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 (()), 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

History

Updated by zzak (Zachary Scott) about 6 years ago

  • Status changed from Open to Rejected

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

Also available in: Atom PDF