From 34cc06f5f5d34af90426cfb7ec730bba38af4ab5 Mon Sep 17 00:00:00 2001 From: Sebastian Celis Date: Thu, 13 Sep 2012 10:15:40 -0500 Subject: [PATCH] Fix issue where section names are parsed as string comments. --- lib/twine/formatters/android.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/twine/formatters/android.rb b/lib/twine/formatters/android.rb index d4a8a39..6833270 100644 --- a/lib/twine/formatters/android.rb +++ b/lib/twine/formatters/android.rb @@ -78,7 +78,7 @@ module Twine set_tags_for_key(key, @options[:tags]) end set_translation_for_key(key, lang, value) - if comment and comment.length > 0 + if comment and comment.length > 0 and !comment.start_with?("SECTION:") set_comment_for_key(key, comment) end comment = nil @@ -109,7 +109,7 @@ module Twine f.puts '' if section.name && section.name.length > 0 section_name = section.name.gsub('--', '—') - f.puts "\t" + f.puts "\t" end printed_section = true end