[#75687] [Ruby trunk Bug#12416] struct rb_id_table lacks mark function — shyouhei@...
Issue #12416 has been reported by Shyouhei Urabe.
3 messages
2016/05/23
[#75763] [Ruby trunk Feature#12435] Using connect_nonblock to open TCP connections in Net::HTTP#connect — mohamed.m.m.hafez@...
Issue #12435 has been reported by Mohamed Hafez.
3 messages
2016/05/28
[#75774] Errno::EAGAIN thrown by OpenSSL::SSL::SSLSocket#connect_nonblock — Mohamed Hafez <mohamed.m.m.hafez@...>
Hi all, every now and then in my production server, I'm
4 messages
2016/05/30
[#75775] Re: Errno::EAGAIN thrown by OpenSSL::SSL::SSLSocket#connect_nonblock
— Mohamed Hafez <mohamed.m.m.hafez@...>
2016/05/30
Or does MRI's OpenSSL::SSL::SSLSocket#connect_nonblock just return
[#75782] Important: Somewhat backwards-incompatible change (Fwd: [ruby-cvs:62388] duerst:r55225 (trunk): * string.c: Activate full Unicode case mapping for UTF-8) — Martin J. Dürst <duerst@...>
With the change below, I have activated full Unicode case mapping for
4 messages
2016/05/31
[ruby-core:75751] [Ruby trunk Bug#12258][Assigned] RDoc bug when handling comments in C code examples
From:
shibata.hiroshi@...
Date:
2016-05-28 04:44:09 UTC
List:
ruby-core #75751
Issue #12258 has been updated by Hiroshi SHIBATA.
Status changed from Open to Assigned
Assignee set to Hiroshi SHIBATA
I will pick commits from upstream when it was fixed.
----------------------------------------
Bug #12258: RDoc bug when handling comments in C code examples
https://bugs.ruby-lang.org/issues/12258#change-58880
* Author: Marcus Stollsteimer
* Status: Assigned
* Priority: Normal
* Assignee: Hiroshi SHIBATA
* ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [i686-linux]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
RDoc fails to correctly convert documentation that includes C example code with `/* ... */` comments.
It does not only produce wrong output for the comment itself (stripping the `/*` and `*/`), but also gets confused with occurences of `*` in completely different parts of the documentation, so that e.g. lists are displayed as code blocks. It appears that `*` at the very beginning of a line triggers a code block under these circumstances.
This affects e.g. http://docs.ruby-lang.org/en/trunk/extension_rdoc.html#label-Check+Data+Type+of+the+VALUE (partially stripped `/*` and `*/` from code example) or http://docs.ruby-lang.org/en/2.2.0/README_EXT.html#label-Adding+New+Features+to+Ruby (list displayed as code block); note that the broken list is fixed in trunk (it's rather a workaround) by using "-" for the list items.
Minimal example for a pure rdoc page:
```
$ cat broken_page.rdoc
A list:
* item 1
* item 2
A sentence with *emphasis* directly at the
*start* of a line.
Some example C code with comment:
void
do_something(VALUE val)
{
/* comment */
}
```
For this rdoc produces:
A list:
```
item 1
item 2
```
A sentence with **emphasis** directly at the
```
start* of a line.
```
Some example C code with comment:
```
void
do_something(VALUE val)
{
comment
}
```
When generating rdoc of a Ruby class, the bug affects only the code example itself:
```
$ cat broken.rb
# A class with broken rdoc.
#
# A list:
#
# * item 1
# * item 2
#
# A sentence with *emphasis* directly at the
# *start* of a line.
#
# Some example C code with comment:
#
# void
# do_something(VALUE val)
# {
# /* comment */
# }
#
class Broken
end
```
This produces:
A class with broken rdoc.
A list:
* item 1
* item 2
A sentence with **emphasis** directly at the **start** of a line.
Some example C code with comment:
```
void
do_something(VALUE val)
{
comment
}
```
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>