You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RDoc doesn't handle Document-method directives for #[] correctly. When multiple directives are given, "Document-method: []" shows up as a code block, at the beginning of the docs for the method of the directive before:
RDoc::Text#strip_stars removes unnecessary Document-method directive.
But the regexp uses only [\w:.#=!?], so it fails with some operator
methods. This commit adds other operater characters to the regexp.
This closesruby#452.
aycabta
added a commit
to aycabta/rdoc
that referenced
this issue
Jan 1, 2018
RDoc::Text#strip_stars removes unnecessary Document-method directive.
But the regexp uses only [\w:.#=!?], so it fails with some operator
methods. This commit adds other operater characters to the regexp.
This closesruby#452.
aycabta
added a commit
to aycabta/rdoc
that referenced
this issue
Jan 4, 2018
RDoc::Text#strip_stars removes unnecessary Document-method directive.
But the regexp uses only [\w:.#=!?], so it fails with some operator
methods. This commit adds other operator characters to the regexp.
This closesruby#452.
Also submitted under https://bugs.ruby-lang.org/issues/13275
RDoc doesn't handle Document-method directives for #[] correctly. When multiple directives are given, "Document-method: []" shows up as a code block, at the beginning of the docs for the method of the directive before:
The directive affects the docs for #foo:
When the order of the Document-method directives is changed, with Document-method: [] as the first one, everything is rendered correctly.
[Real life example: https://docs.ruby-lang.org/en/2.3.0/Proc.html#method-i-call,
in the meantime fixed with above workaround in r57767 and related backports]
The text was updated successfully, but these errors were encountered: