Remove section titles and comments from JSON output

The comment syntax is not proper JSON.
This commit is contained in:
Simon Friis Vindum 2014-03-17 14:22:57 +01:00
parent 4e308175b6
commit 7e311c7b11

View file

@ -58,9 +58,6 @@ module Twine
if row.matches_tags?(@options[:tags], @options[:untagged])
if !printed_section
f.puts ''
if section.name && section.name.length > 0
f.puts "/* #{section.name} */"
end
printed_section = true
end
@ -77,11 +74,7 @@ module Twine
f.print "\"#{key}\":\"#{value}\","
if comment && comment.length > 0
f.print " /* #{comment} */\n"
else
f.print "\n"
end
f.print "\n"
end
end
end