diff --git a/lib/twine/formatters/jquery.rb b/lib/twine/formatters/jquery.rb index 8d60116..bfe8d4c 100644 --- a/lib/twine/formatters/jquery.rb +++ b/lib/twine/formatters/jquery.rb @@ -50,6 +50,7 @@ module Twine def format_sections(twine_file, lang) sections = twine_file.sections.map { |section| format_section(section, lang) } + sections.delete_if &:empty? sections.join(",\n\n") end