From e77b20db8ce2b6da5f9138937afadd69a2fbf5e2 Mon Sep 17 00:00:00 2001 From: JJ Merelo Date: Sat, 28 Oct 2017 12:08:01 +0200 Subject: [PATCH 1/2] Minor formatting changes --- .travis.yml | 6 ------ t/spaces.t | 3 ++- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index fa385cf..4edbe3a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,12 +2,6 @@ language: perl perl: - "5.24" - "5.22" - #- "5.20" - #- "5.18" - #- "5.16" - #- "5.14" - #- "5.12" - #- "5.10" - "dev" # installs latest developer release of perl (e.g. 5.21.8) - "blead" # builds perl from git diff --git a/t/spaces.t b/t/spaces.t index dc7c936..0a58890 100644 --- a/t/spaces.t +++ b/t/spaces.t @@ -1,8 +1,9 @@ -use strict; +use strict; # -*- mode: cperl use warnings; use Test::More 0.96; use Test::Warnings; +use lib qw(lib/ ../lib); # For local testing use_ok('HTML::FormatText'); is( HTML::FormatText->format_string('| |'), "| |\n", 'Check for spaces emitted when fed spaces' ); From 19859f757c9d46134d440ea7e717c05446bb102d Mon Sep 17 00:00:00 2001 From: JJ Merelo Date: Sat, 28 Oct 2017 12:17:15 +0200 Subject: [PATCH 2/2] Changes test result Apparently there was a change in the upstream HTML::TreeBuilder that returned \xA0 instead of a simple whitespace when fed  . I checked that out and changed the test. --- t/spaces.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/spaces.t b/t/spaces.t index 0a58890..cd2e30f 100644 --- a/t/spaces.t +++ b/t/spaces.t @@ -7,7 +7,7 @@ use lib qw(lib/ ../lib); # For local testing use_ok('HTML::FormatText'); is( HTML::FormatText->format_string('| |'), "| |\n", 'Check for spaces emitted when fed spaces' ); -is( HTML::FormatText->format_string('| |'), "| |\n", 'Check for spaces emitted when fed  ' ); +is( HTML::FormatText->format_string('| |'), "|\xA0|\n", 'Check for spaces emitted when fed  ' ); # finish up done_testing();