Skip to content

Commit

Permalink
Fix frozen string modification in onefile template
Browse files Browse the repository at this point in the history
Fixes #1184
  • Loading branch information
lsegal committed Jan 22, 2019
1 parent 6252ced commit 5699818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/default/onefile/html/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def parse_top_comments_from_file
tokens = TokenList.new(@readme.contents)
tokens.each do |token|
break unless token.is_a?(RubyToken::TkCOMMENT) || token.is_a?(RubyToken::TkNL)
data << (token.text[/\A#\s{0,1}(.*)/, 1] || "\n")
data += (token.text[/\A#\s{0,1}(.*)/, 1] || "\n")
end
YARD::Docstring.new(data)
end
Expand Down

0 comments on commit 5699818

Please sign in to comment.