null+****@clear*****
null+****@clear*****
Mon Jul 23 10:24:40 JST 2012
SHIMADA Koji 2012-07-23 10:24:40 +0900 (Mon, 23 Jul 2012) New Revision: db8e5e54bccce744805c5864e34b11b7e2753b05 https://github.com/logaling/logaling-command/commit/db8e5e54bccce744805c5864e34b11b7e2753b05 Log: Format all output text before print Modified files: lib/logaling/command/renderers.rb Modified: lib/logaling/command/renderers.rb (+2 -2) =================================================================== --- lib/logaling/command/renderers.rb 2012-07-21 11:11:41 +0900 (f33c2c8) +++ lib/logaling/command/renderers.rb 2012-07-23 10:24:40 +0900 (1af3b87) @@ -73,8 +73,8 @@ module Logaling::Command end def render(output) - format = [target_term.strip, note, glossary_name].compact.join("\t") - output.printf(" %s %s\n", padded_source_term, format) + formatted_text = [padded_source_term, target_term, note, glossary_name].compact.join("\t") + output.printf(" %s\n", formatted_text) end def glossary_name -------------- next part -------------- An HTML attachment was scrubbed...Télécharger