summaryrefslogtreecommitdiff
path: root/lib/rdoc/markup/to_rdoc.rb
diff options
context:
space:
mode:
authorSoutaro Matsumoto <[email protected]>2024-12-18 05:56:21 +0900
committergit <[email protected]>2024-12-17 20:56:24 +0000
commit408f5368908889e1af141b05d3afd8704b0ef33a (patch)
tree82c8ecb9f8c0c9986b20a7d789b5c301130f64fd /lib/rdoc/markup/to_rdoc.rb
parent9715131c32fa9753da6a616c9ad3891e27bcff5b (diff)
[ruby/rdoc] `aligns` may include `:center`
(https://github.com/ruby/rdoc/pull/1247) https://github.com/ruby/rdoc/commit/cbbf04d6f8
Diffstat (limited to 'lib/rdoc/markup/to_rdoc.rb')
-rw-r--r--lib/rdoc/markup/to_rdoc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/markup/to_rdoc.rb b/lib/rdoc/markup/to_rdoc.rb
index 90763ccfdb..cbd99c50d5 100644
--- a/lib/rdoc/markup/to_rdoc.rb
+++ b/lib/rdoc/markup/to_rdoc.rb
@@ -254,7 +254,7 @@ class RDoc::Markup::ToRdoc < RDoc::Markup::Formatter
end
aligns = aligns.map do |a|
case a
- when nil
+ when nil, :center
:center
when :left
:ljust