<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/rdoc/markup/to_rdoc.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Sync RDoc 6.14.0</title>
<updated>2025-05-22T22:04:47+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2025-05-22T21:49:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=03eb777c69d64aa4941891a784c1fd67b44ea42c'/>
<id>03eb777c69d64aa4941891a784c1fd67b44ea42c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] `aligns` may include `:center`</title>
<updated>2024-12-17T20:56:24+00:00</updated>
<author>
<name>Soutaro Matsumoto</name>
<email>matsumoto@soutaro.com</email>
</author>
<published>2024-12-17T20:56:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=408f5368908889e1af141b05d3afd8704b0ef33a'/>
<id>408f5368908889e1af141b05d3afd8704b0ef33a</id>
<content type='text'>
(https://github.com/ruby/rdoc/pull/1247)

https://github.com/ruby/rdoc/commit/cbbf04d6f8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/rdoc/pull/1247)

https://github.com/ruby/rdoc/commit/cbbf04d6f8
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Fix ToRdoc#accept_table</title>
<updated>2024-10-03T12:27:43+00:00</updated>
<author>
<name>tomoya ishida</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-10-03T12:27:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=218445bb1fbda6b215b42e6149da672d330a7042'/>
<id>218445bb1fbda6b215b42e6149da672d330a7042</id>
<content type='text'>
(https://github.com/ruby/rdoc/pull/1184)

https://github.com/ruby/rdoc/commit/7b68545094
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/rdoc/pull/1184)

https://github.com/ruby/rdoc/commit/7b68545094
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Fix ToRdoc generating incorrect {label,name}-lists</title>
<updated>2024-03-09T03:50:09+00:00</updated>
<author>
<name>Hartley McGuire</name>
<email>skipkayhil@gmail.com</email>
</author>
<published>2024-03-06T01:13:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5ac6194c2b13856edd7e7bcaaa69a15519fd993e'/>
<id>5ac6194c2b13856edd7e7bcaaa69a15519fd993e</id>
<content type='text'>
Previously, trying to round-trip label-list and name-lists with the
ToRdoc converter was not possible:

```ruby
doc = &lt;&lt;~RDOC
foo ::
bar ::
  hi
RDOC

markup = RDoc::Markup.parse(doc)
markup # =&gt; [doc: [list: NOTE [item: ["foo ", "bar"]; [para: "hi"]]]]

rt = RDoc::Markup::ToRdoc.new.convert(markup)
rt # =&gt; "foo\nbar:\n  hi\n\n"

rt_markup = RDoc::Markup.parse(rt)
rt_markup # =&gt; [doc: [para: "foo ", "bar:"], [verb: "hi\n"]]
```

This commit addresses the issue by fixing ToRdoc to generate output that
can be properly reparsed by RDoc. ToRdoc tests additionally needed to be
updated for the new output.

The old implementation of `accept_list_item_start` was copied to ToBs
because those tests did not pass with the new changes and I am
unfamiliar with the `backspace` format.

After:

```ruby
doc = &lt;&lt;~RDOC
foo ::
bar ::
  hi
RDOC

markup = RDoc::Markup.parse(doc)
markup # =&gt; [doc: [list: NOTE [item: ["foo ", "bar"]; [para: "hi"]]]]

rt = RDoc::Markup::ToRdoc.new.convert(markup)
rt # =&gt; "foo::\nbar::\n  hi\n\n"

rt_markup = RDoc::Markup.parse(rt)
rt_markup # =&gt; [doc: [list: NOTE [item: ["foo", "bar"]; [para: "hi"], blankline]]]
```

https://github.com/ruby/rdoc/commit/c6c51aa900
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, trying to round-trip label-list and name-lists with the
ToRdoc converter was not possible:

```ruby
doc = &lt;&lt;~RDOC
foo ::
bar ::
  hi
RDOC

markup = RDoc::Markup.parse(doc)
markup # =&gt; [doc: [list: NOTE [item: ["foo ", "bar"]; [para: "hi"]]]]

rt = RDoc::Markup::ToRdoc.new.convert(markup)
rt # =&gt; "foo\nbar:\n  hi\n\n"

rt_markup = RDoc::Markup.parse(rt)
rt_markup # =&gt; [doc: [para: "foo ", "bar:"], [verb: "hi\n"]]
```

This commit addresses the issue by fixing ToRdoc to generate output that
can be properly reparsed by RDoc. ToRdoc tests additionally needed to be
updated for the new output.

The old implementation of `accept_list_item_start` was copied to ToBs
because those tests did not pass with the new changes and I am
unfamiliar with the `backspace` format.

After:

```ruby
doc = &lt;&lt;~RDOC
foo ::
bar ::
  hi
RDOC

markup = RDoc::Markup.parse(doc)
markup # =&gt; [doc: [list: NOTE [item: ["foo ", "bar"]; [para: "hi"]]]]

rt = RDoc::Markup::ToRdoc.new.convert(markup)
rt # =&gt; "foo::\nbar::\n  hi\n\n"

rt_markup = RDoc::Markup.parse(rt)
rt_markup # =&gt; [doc: [list: NOTE [item: ["foo", "bar"]; [para: "hi"], blankline]]]
```

https://github.com/ruby/rdoc/commit/c6c51aa900
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Auto-correct trailing new lines</title>
<updated>2023-06-03T01:42:29+00:00</updated>
<author>
<name>Vinicius Stock</name>
<email>stock@hey.com</email>
</author>
<published>2023-06-02T22:56:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a4d92475f69f0ca3dba0f497253e600c7f90a0ad'/>
<id>a4d92475f69f0ca3dba0f497253e600c7f90a0ad</id>
<content type='text'>
https://github.com/ruby/rdoc/commit/4b68c0728a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rdoc/commit/4b68c0728a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Refine regexp usages and reduce substring allocations</title>
<updated>2022-11-27T16:35:08+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-12-08T15:10:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=511864d1a7188f78f8a7ec93a5fe3f406bb6899f'/>
<id>511864d1a7188f78f8a7ec93a5fe3f406bb6899f</id>
<content type='text'>
https://github.com/ruby/rdoc/commit/a976fb9d39
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rdoc/commit/a976fb9d39
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rdoc] Support GFM table</title>
<updated>2021-03-16T06:47:27+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-01-25T15:31:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3651f678a719ae3a35825bcb4e0dabbc7c60d8df'/>
<id>3651f678a719ae3a35825bcb4e0dabbc7c60d8df</id>
<content type='text'>
https://github.com/ruby/rdoc/commit/9dc933df16
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rdoc/commit/9dc933df16
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/rdoc/markup/: Remove wrong call to `=~` against Array</title>
<updated>2018-11-26T05:32:50+00:00</updated>
<author>
<name>mame</name>
<email>mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2018-11-26T05:32:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=03cde6c805bea904111311de87a1714aa902c5d3'/>
<id>03cde6c805bea904111311de87a1714aa902c5d3</id>
<content type='text'>
`@res` is an Array, so `@res =~ /\n\z/` calls `Object#=~` which always
returns nil.
I guess it should be `@res.last =~ /\n\z/`, but the change causes test
failures.

This bug was found during work for removal of `Object#=~`.
[Feature #15231]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`@res` is an Array, so `@res =~ /\n\z/` calls `Object#=~` which always
returns nil.
I guess it should be `@res.last =~ /\n\z/`, but the change causes test
failures.

This bug was found during work for removal of `Object#=~`.
[Feature #15231]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge rdoc-6.1.0.beta2</title>
<updated>2018-10-17T06:28:20+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2018-10-17T06:28:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1b43644edc85a93bfc9228588c065c87f975cd93'/>
<id>1b43644edc85a93bfc9228588c065c87f975cd93</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge rdoc-6.0.0.beta4 from upstream.</title>
<updated>2017-11-27T10:45:24+00:00</updated>
<author>
<name>hsbt</name>
<email>hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-11-27T10:45:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=55518710865bd7258422807524403c91347519a2'/>
<id>55518710865bd7258422807524403c91347519a2</id>
<content type='text'>
  It version applied `frozen_string_literal: true`

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  It version applied `frozen_string_literal: true`

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
</feed>
