lib/gettext/po_entry.rb in gettext-3.4.7 vs lib/gettext/po_entry.rb in gettext-3.4.8
- old
+ new
@@ -426,14 +426,15 @@
end
formatted_reference
end
def format_flag_comment
- formatted_flags = String.new
- @entry.flags.each do |flag|
- formatted_flags << format_comment(FLAG_MARK, flag)
+ if @entry.flags.empty?
+ String.new
+ else
+ joined_flags = @entry.flags.join(", ")
+ format_comment(FLAG_MARK, joined_flags)
end
- formatted_flags
end
def format_previous_comment
format_comment(PREVIOUS_COMMENT_MARK, @entry.previous)
end