KITAITI Makoto
null+****@clear*****
Sun Feb 15 01:02:26 JST 2015
KITAITI Makoto 2015-02-15 01:02:26 +0900 (Sun, 15 Feb 2015) New Revision: 309ff0e09e92e7f1b610cf389b5ed81cb40451be https://github.com/ranguba/epub-searcher/commit/309ff0e09e92e7f1b610cf389b5ed81cb40451be Message: Ensure line break at EOF on comparing dumped text For editor settings to add line break at EOF automatically. See https://github.com/ranguba/epub-searcher/commit/ee8e55d1c9ef0d58c3196d232f2edf77ff0fa434#commitcomment-9749191 Modified files: test/test_config.rb Modified: test/test_config.rb (+2 -2) =================================================================== --- test/test_config.rb 2015-02-15 01:01:27 +0900 (f9a64b7) +++ test/test_config.rb 2015-02-15 01:02:26 +0900 (d402c25) @@ -29,11 +29,11 @@ class Test::Unit::TestCase end def normalize_newline(text) - text.gsub(/(?:\r\n)+/, "\r\n") + text.gsub(/(?:\r\n)+/, "\r\n").chomp + "\n" end def normalize_newline_literal(text) - text.gsub(/(?:\\r\\n)+/, "\\r\\n") + text.gsub(/(?:\\r\\n)+/, "\\r\\n").chomp + "\n" end def omit_on_travis -------------- next part -------------- HTML����������������������������... Download