Kouhei Sutou
null+****@clear*****
Wed Jul 5 23:28:45 JST 2017
Kouhei Sutou 2017-07-05 23:28:45 +0900 (Wed, 05 Jul 2017) New Revision: 1a5b2456d9ec491e6301288eab6878a1a12546f2 https://github.com/ranguba/chupa-text/commit/1a5b2456d9ec491e6301288eab6878a1a12546f2 Message: Use "white-space: pre-wrap" than xml:space="preserve" Because xml:space is deprecated in SVG 2. Modified files: lib/chupa-text/decomposers/csv.rb test/command/test-chupa-text.rb Modified: lib/chupa-text/decomposers/csv.rb (+2 -2) =================================================================== --- lib/chupa-text/decomposers/csv.rb 2017-07-05 23:23:49 +0900 (72923fb) +++ lib/chupa-text/decomposers/csv.rb 2017-07-05 23:28:45 +0900 (d37acfc) @@ -69,8 +69,8 @@ module ChupaText <text x="0" y="10" - xml:space="preserve" - style="font-size: 10px;">#{CGI.escapeHTML(target_text)}</text> + style="font-size: 10px; white-space: pre-wrap;" + xml:space="preserve">#{CGI.escapeHTML(target_text)}</text> </svg> SVG Screenshot.new(mime_type, data) Modified: test/command/test-chupa-text.rb (+2 -2) =================================================================== --- test/command/test-chupa-text.rb 2017-07-05 23:23:49 +0900 (ab58baa) +++ test/command/test-chupa-text.rb 2017-07-05 23:28:45 +0900 (4afd7a2) @@ -215,8 +215,8 @@ class TestCommandChupaText < Test::Unit::TestCase <text x="0" y="10" - xml:space="preserve" - style="font-size: 10px;">1 2 3 + style="font-size: 10px; white-space: pre-wrap;" + xml:space="preserve">1 2 3 4 5 6 7 8 9 </text> -------------- next part -------------- HTML����������������������������...Download