Skip to content

Commit

Permalink
Merge pull request #813 from ohai/fix-overload-tag-in-module-function
Browse files Browse the repository at this point in the history
Fix Docstring#to_raw about @overload tag
  • Loading branch information
lsegal committed Jan 4, 2015
2 parents dd7a3d8 + 3e64893 commit 680e691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yard/docstring.rb
Expand Up @@ -212,7 +212,7 @@ def to_raw
when Tags::OverloadTag
tag_text = "@#{tag.tag_name} #{tag.signature}\n"
unless tag.docstring.blank?
tag_text += "\n" + tag.docstring.all.gsub(/\r?\n/, "\n ")
tag_text += "\n " + tag.docstring.all.gsub(/\r?\n/, "\n ")
end
when Tags::OptionTag
tag_text = "@#{tag.tag_name} #{tag.name}"
Expand Down

0 comments on commit 680e691

Please sign in to comment.