Skip to content

Commit e189949

Browse files
committed
Merge pull request #7 from hamiltop/fix_rhg_textile_converter_plugin
replace map! in _plugins/rhg_textile_converter.rb
2 parents 237d18f + d777b33 commit e189949

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_plugins/rhg_textile_converter.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ def convert(content)
1313
# try to enable the <code> syntax of the original RubyForge project,
1414
# but not fully.
1515
lines = content.lines
16-
lines.map! { |line| line.gsub(RHG_CODE_RE) { "<code>#{$1}</code>" } }
17-
content = lines.join
16+
content = lines.map { |line| line.gsub(RHG_CODE_RE) { "<code>#{$1}</code>" } }.join
1817

1918
# try to apply the style for images of the original book
2019
figc = 0

0 commit comments

Comments
 (0)