Hello community,

here is the log from the commit of package perl-HTML-Tidy for openSUSE:Factory 
checked in at 2017-10-11 22:55:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-HTML-Tidy (Old)
 and      /work/SRC/openSUSE:Factory/.perl-HTML-Tidy.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-HTML-Tidy"

Wed Oct 11 22:55:26 2017 rev:6 rq:532544 version:1.60

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-HTML-Tidy/perl-HTML-Tidy.changes    
2013-09-29 17:50:59.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-HTML-Tidy.new/perl-HTML-Tidy.changes       
2017-10-11 22:55:27.876392810 +0200
@@ -1,0 +2,26 @@
+Sun Oct  8 08:36:07 UTC 2017 - [email protected]
+
+- updated to 1.60
+   see /usr/share/doc/packages/perl-HTML-Tidy/Changes
+
+  
+  1.60    Wed Sep 13 10:34:35 CDT 2017
+  ====================================
+  No functionality changes.  Fixes failing tests caused by differing
+  versions of the tidy library.  Thanks, Rufus Cable.
+  
+  
+  1.58    Sat May 27 00:03:51 CDT 2017
+  ====================================
+  No functionality changes.  This just fixes some tests.  This will probably
+  be the last release that uses the old tidy/tidyp.  There is a new tidy
+  that supports HTML 5 and I'm going to start working on making HTML::Tidy
+  use that.
+  
+  [FIXES]
+  Failing tests on Windows.  Thanks, Klaus Baldermann. (GH #11, GH #23)
+  
+  [INTERNALS]
+  Added more tests.  Thanks, Hunter McMillen.
+
+-------------------------------------------------------------------

Old:
----
  HTML-Tidy-1.56.tar.gz

New:
----
  HTML-Tidy-1.60.tar.gz
  cpanspec.yml

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-HTML-Tidy.spec ++++++
--- /var/tmp/diff_new_pack.6e7Qg2/_old  2017-10-11 22:55:29.420325104 +0200
+++ /var/tmp/diff_new_pack.6e7Qg2/_new  2017-10-11 22:55:29.420325104 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-HTML-Tidy
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,46 +17,37 @@
 
 
 Name:           perl-HTML-Tidy
-Version:        1.56
+Version:        1.60
 Release:        0
 %define cpan_name HTML-Tidy
 Summary:        (X)HTML validation in a Perl object
 License:        Artistic-2.0
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/HTML-Tidy/
-Source:         
http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tidy-%{version}.tar.gz
+Source0:        
https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-# MANUAL
-BuildRequires:  libtidyp-devel
 BuildRequires:  perl
 BuildRequires:  perl-macros
-BuildRequires:  perl(Carp)
-BuildRequires:  perl(Exporter)
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Test::Builder)
-BuildRequires:  perl(Test::More)
-BuildRequires:  perl(constant)
-BuildRequires:  perl(overload)
+BuildRequires:  perl(Test::More) >= 0.98
+Requires:       perl(Test::More) >= 0.98
+%{perl_requires}
 # MANUAL BEGIN
+BuildRequires:  libtidyp-devel
 BuildRequires:  perl(Alien::Tidyp)
 Requires:       perl(LWP::Simple)
 BuildRequires:  perl(LWP::Simple)
+BuildRequires:  perl(Test::Exception)
 # MANUAL END
-Requires:       perl(Carp)
-Requires:       perl(Exporter)
-Requires:       perl(Test::Builder)
-Requires:       perl(Test::More)
-Requires:       perl(constant)
-Requires:       perl(overload)
-%{perl_requires}
 
 %description
 'HTML::Tidy' is an HTML checker in a handy dandy object. It's meant as a
 replacement for HTML::Lint. If you're currently an HTML::Lint user looking
-to migrate, see the section the /Converting from HTML::Lint manpage.
+to migrate, see the section Converting from HTML::Lint.
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
+find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -70,9 +61,6 @@
 %perl_process_packlist
 %perl_gen_filelist
 
-%clean
-%{__rm} -rf %{buildroot}
-
 %files -f %{name}.files
 %defattr(-,root,root,755)
 %doc Changes README.markdown

++++++ HTML-Tidy-1.56.tar.gz -> HTML-Tidy-1.60.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/Changes new/HTML-Tidy-1.60/Changes
--- old/HTML-Tidy-1.56/Changes  2013-09-22 23:39:51.000000000 +0200
+++ new/HTML-Tidy-1.60/Changes  2017-09-13 17:38:03.000000000 +0200
@@ -1,5 +1,26 @@
 Revision history for Perl extension HTML::Tidy.
 
+
+1.60    Wed Sep 13 10:34:35 CDT 2017
+====================================
+No functionality changes.  Fixes failing tests caused by differing
+versions of the tidy library.  Thanks, Rufus Cable.
+
+
+1.58    Sat May 27 00:03:51 CDT 2017
+====================================
+No functionality changes.  This just fixes some tests.  This will probably
+be the last release that uses the old tidy/tidyp.  There is a new tidy
+that supports HTML 5 and I'm going to start working on making HTML::Tidy
+use that.
+
+[FIXES]
+Failing tests on Windows.  Thanks, Klaus Baldermann. (GH #11, GH #23)
+
+[INTERNALS]
+Added more tests.  Thanks, Hunter McMillen.
+
+
 1.56    Sun Sep 22 16:39:40 CDT 2013
 ====================================
 [ENHANCEMENTS]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/MANIFEST new/HTML-Tidy-1.60/MANIFEST
--- old/HTML-Tidy-1.56/MANIFEST 2013-09-23 00:33:18.000000000 +0200
+++ new/HTML-Tidy-1.60/MANIFEST 2017-09-13 17:38:14.000000000 +0200
@@ -10,13 +10,17 @@
 t/00-load.t
 t/cfg-for-parse.cfg
 t/cfg-for-parse.t
+t/clean.t
 t/clean-crash.t
 t/extra-quote.t
 t/ignore-text.t
 t/ignore.t
+t/illegal-options.t
 t/levels.t
 t/message.t
 t/opt-00.t
+t/parse.t
+t/parse-errors.t
 t/perfect.t
 t/pod-coverage.t
 t/pod.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/META.json new/HTML-Tidy-1.60/META.json
--- old/HTML-Tidy-1.56/META.json        2013-09-23 00:33:18.000000000 +0200
+++ new/HTML-Tidy-1.60/META.json        2017-09-13 17:38:14.000000000 +0200
@@ -4,7 +4,7 @@
       "Andy Lester <[email protected]>"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter 
version 2.112621",
+   "generated_by" : "ExtUtils::MakeMaker version 7.16, CPAN::Meta::Converter 
version 2.150005",
    "license" : [
       "artistic_2"
    ],
@@ -22,22 +22,24 @@
    "prereqs" : {
       "build" : {
          "requires" : {
-            "ExtUtils::MakeMaker" : 0
+            "ExtUtils::MakeMaker" : "0"
          }
       },
       "configure" : {
          "requires" : {
-            "ExtUtils::MakeMaker" : 0
+            "ExtUtils::MakeMaker" : "0"
          }
       },
       "runtime" : {
          "requires" : {
-            "Carp" : 0,
-            "Exporter" : 0,
-            "Test::Builder" : 0,
+            "Carp" : "0",
+            "Encode" : "0",
+            "Exporter" : "0",
+            "Getopt::Long" : "0",
+            "Test::Builder" : "0",
             "Test::More" : "0.98",
-            "constant" : 0,
-            "overload" : 0,
+            "constant" : "0",
+            "overload" : "0",
             "perl" : "5.008"
          }
       }
@@ -55,5 +57,6 @@
          "url" : "http://github.com/petdance/html-tidy";
       }
    },
-   "version" : "1.56"
+   "version" : "1.60",
+   "x_serialization_backend" : "JSON::PP version 2.27400"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/META.yml new/HTML-Tidy-1.60/META.yml
--- old/HTML-Tidy-1.56/META.yml 2013-09-23 00:33:18.000000000 +0200
+++ new/HTML-Tidy-1.60/META.yml 2017-09-13 17:38:13.000000000 +0200
@@ -3,31 +3,34 @@
 author:
   - 'Andy Lester <[email protected]>'
 build_requires:
-  ExtUtils::MakeMaker: 0
+  ExtUtils::MakeMaker: '0'
 configure_requires:
-  ExtUtils::MakeMaker: 0
+  ExtUtils::MakeMaker: '0'
 dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 
2.112621'
+generated_by: 'ExtUtils::MakeMaker version 7.16, CPAN::Meta::Converter version 
2.150005'
 license: artistic_2
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
-  version: 1.4
+  version: '1.4'
 name: HTML-Tidy
 no_index:
   directory:
     - t
     - inc
 requires:
-  Carp: 0
-  Exporter: 0
-  Test::Builder: 0
-  Test::More: 0.98
-  constant: 0
-  overload: 0
-  perl: 5.008
+  Carp: '0'
+  Encode: '0'
+  Exporter: '0'
+  Getopt::Long: '0'
+  Test::Builder: '0'
+  Test::More: '0.98'
+  constant: '0'
+  overload: '0'
+  perl: '5.008'
 resources:
   bugtracker: http://github.com/petdance/html-tidy/issues
   homepage: http://github.com/petdance/html-tidy
   license: http://www.opensource.org/licenses/artistic-license-2.0.php
   repository: http://github.com/petdance/html-tidy
-version: 1.56
+version: '1.60'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/Makefile.PL 
new/HTML-Tidy-1.60/Makefile.PL
--- old/HTML-Tidy-1.56/Makefile.PL      2013-09-22 23:58:55.000000000 +0200
+++ new/HTML-Tidy-1.60/Makefile.PL      2017-09-13 17:29:15.000000000 +0200
@@ -29,14 +29,14 @@
         print <<'EOF';
 
 It seems that you don't have tidyp installed.  HTML::Tidy does no
-real work on its own.  It's just a wrapper aound tidyp.
+real work on its own.  It's just a wrapper around tidyp.
 
-Please read the README.markdown file for details on how to install.
+Please read the README.markdown file for details on how to install tidyp.
 
 If you do have tidyp installed, but Makefile.PL can't detect it,
 go ahead and try building.  If HTML::Tidy builds and tests correctly,
 please file a ticket at Github at
-http://github.com/petdance/html-tidy/issues.  so we can fix the
+http://github.com/petdance/html-tidy/issues, so we can fix the
 library detection code.
 
 EOF
@@ -60,7 +60,9 @@
     VERSION_FROM        => 'lib/HTML/Tidy.pm',
     ABSTRACT_FROM       => 'lib/HTML/Tidy.pm',
     PREREQ_PM           => {
+        'Encode'        => 0,   # for tests
         'Exporter'      => 0,
+        'Getopt::Long'  => 0,   # in webtidy
         'Test::More'    => '0.98', # For subtest()
         'Test::Builder' => 0,
         'Carp'          => 0,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/README.markdown 
new/HTML-Tidy-1.60/README.markdown
--- old/HTML-Tidy-1.56/README.markdown  2012-07-07 06:08:57.000000000 +0200
+++ new/HTML-Tidy-1.60/README.markdown  2017-09-13 17:29:15.000000000 +0200
@@ -1,7 +1,7 @@
 HTML::Tidy
 ==========
 HTML::Tidy is an HTML checker in a handy dandy object.  It's meant as
-a replacement for [HTML::Lint] [1], which is written in Perl but is not
+a companion to [HTML::Lint][1], which is written in Perl but is not
 nearly as capable as HTML::Tidy.
 
 
@@ -13,17 +13,19 @@
 
 There are two, perhaps three, ways to install tidyp:
 
-* Get a tarball from the [tidyp source distributions] [2] from
+* Get a tarball from the [tidyp source distributions][2] from
 Github and and build it like any other C library.  Note that you
 must get a source tarball, *not* just clone the source tree via
 github.
 
-* Install the [Alien::Tidyp] [3] Perl module, which automates the
+* Install the [Alien::Tidyp][3] Perl module, which automates the
 tidyp installation process.
 
 * Your operating system may also have a package for tidyp that you
-can install.  I am not aware of any packages at this writing, but
-they could still exist without me knowing.
+can install.  As of this writing, these operating systems are known
+to provide tidyp library:
+    * Fedora contains [tidyp-devel package][4]
+    * FreeBSD contains [tidyp port][5]
 
 You need only do one of these steps.
 
@@ -41,7 +43,7 @@
 
 COPYRIGHT AND LICENSE
 =====================
-Copyright (C) 2004-2010 by Andy Lester
+Copyright (C) 2004-2017 by Andy Lester
 
 This library is free software.  It may be redistributed and modified
 under the Artistic License v2.0.
@@ -49,3 +51,5 @@
   [1]: http://search.cpan.org/dist/HTML-Lint/       "HTML::Lint"
   [2]: http://github.com/petdance/tidyp/downloads   "tidyp source 
distributions"
   [3]: http://search.cpan.org/dist/Alien-Tidyp/     "Alien::Tidyp"
+  [4]: https://apps.fedoraproject.org/packages/tidyp "tidyp-devel package"
+  [5]: http://fbsdmon.org/ports/textproc/tidyp       "tidyp port"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/lib/HTML/Tidy/Message.pm 
new/HTML-Tidy-1.60/lib/HTML/Tidy/Message.pm
--- old/HTML-Tidy-1.56/lib/HTML/Tidy/Message.pm 2013-09-22 23:13:50.000000000 
+0200
+++ new/HTML-Tidy-1.60/lib/HTML/Tidy/Message.pm 2017-09-13 17:29:15.000000000 
+0200
@@ -139,7 +139,7 @@
 
 =head1 COPYRIGHT & LICENSE
 
-Copyright 2005-2013 Andy Lester.
+Copyright 2005-2017 Andy Lester.
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the Artistic License v2.0.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/lib/HTML/Tidy.pm 
new/HTML-Tidy-1.60/lib/HTML/Tidy.pm
--- old/HTML-Tidy-1.56/lib/HTML/Tidy.pm 2013-09-23 00:01:17.000000000 +0200
+++ new/HTML-Tidy-1.60/lib/HTML/Tidy.pm 2017-09-13 17:38:03.000000000 +0200
@@ -13,11 +13,11 @@
 
 =head1 VERSION
 
-Version 1.56
+Version 1.60
 
 =cut
 
-our $VERSION = '1.56';
+our $VERSION = '1.60';
 
 =head1 SYNOPSIS
 
@@ -219,7 +219,7 @@
     my $self = shift;
     my $filename = shift;
     if (@_ == 0) {
-        Carp::croak('Usage: parser($filename,$str [, $str...])') ## no critic
+        Carp::croak('Usage: parse($filename,$str [, $str...])') ## no critic
     }
     my $html = join( '', @_ );
 
@@ -439,7 +439,10 @@
 
 =head1 ACKNOWLEDGEMENTS
 
-Thanks to Jonathan Rockway and Robert Bachmann for contributions.
+Thanks to
+Rufus Cable,
+Jonathan Rockway,
+and Robert Bachmann for contributions.
 
 =head1 AUTHOR
 
@@ -447,7 +450,7 @@
 
 =head1 COPYRIGHT & LICENSE
 
-Copyright (C) 2005-2013 by Andy Lester
+Copyright (C) 2005-2017 by Andy Lester
 
 This library is free software.  You mean modify or distribute it under
 the Artistic License v2.0.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/t/00-load.t 
new/HTML-Tidy-1.60/t/00-load.t
--- old/HTML-Tidy-1.56/t/00-load.t      2013-09-22 22:57:22.000000000 +0200
+++ new/HTML-Tidy-1.60/t/00-load.t      2017-09-13 17:29:15.000000000 +0200
@@ -8,5 +8,5 @@
 use HTML::Tidy;
 use HTML::Tidy::Message;
 
-diag( "Testing HTML::Tidy $HTML::Tidy::VERSION, Perl $]; tidyp " . 
HTML::Tidy->tidyp_version() );
+diag( "Testing HTML::Tidy $HTML::Tidy::VERSION, tidyp " . 
HTML::Tidy->tidyp_version() . ", Perl $], $^X" );
 pass( 'Modules loaded' );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/t/clean.t new/HTML-Tidy-1.60/t/clean.t
--- old/HTML-Tidy-1.56/t/clean.t        1970-01-01 01:00:00.000000000 +0100
+++ new/HTML-Tidy-1.60/t/clean.t        2017-09-13 17:38:03.000000000 +0200
@@ -0,0 +1,37 @@
+#!/usr/bin/perl -T
+
+use strict;
+use warnings;
+
+use Test::Exception;
+use Test::More tests => 3;
+
+use HTML::Tidy;
+
+my $tidy = HTML::Tidy->new;
+isa_ok( $tidy, 'HTML::Tidy' );
+
+my $expected_pattern = 'Usage: clean($str [, $str...])';
+throws_ok {
+    $tidy->clean();
+} qr/\Q$expected_pattern\E/,
+'clean() croaks when not given a string or list of strings';
+
+like(
+    $tidy->clean(''),
+    _expected_empty_html(),
+    '$tidy->clean("") returns empty HTML document',
+);
+
+sub _expected_empty_html {
+    return qr{<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<html>
+<head>
+<meta name="generator" content="[^"]+">
+<title></title>
+</head>
+<body>
+</body>
+</html>
+};
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/t/illegal-options.t 
new/HTML-Tidy-1.60/t/illegal-options.t
--- old/HTML-Tidy-1.56/t/illegal-options.t      1970-01-01 01:00:00.000000000 
+0100
+++ new/HTML-Tidy-1.60/t/illegal-options.t      2017-09-13 17:29:15.000000000 
+0200
@@ -0,0 +1,32 @@
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::Exception;
+use Test::More;
+
+use HTML::Tidy;
+
+my @unsupported_options = qw(
+    force-output
+    gnu-emacs-file
+    gnu-emacs
+    keep-time
+    quiet
+    slide-style
+    write-back
+);
+
+foreach my $option ( @unsupported_options ) {
+    throws_ok {
+        HTML::Tidy->new(
+            {  config_file => 't/cfg-for-parse.cfg',
+               $option     => 1,
+            }
+        );
+    } qr/\QUnsupported option: $option\E/,
+    "option $option is not supported";
+}
+
+done_testing();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/t/parse-errors.t 
new/HTML-Tidy-1.60/t/parse-errors.t
--- old/HTML-Tidy-1.56/t/parse-errors.t 1970-01-01 01:00:00.000000000 +0100
+++ new/HTML-Tidy-1.60/t/parse-errors.t 2017-09-13 17:29:15.000000000 +0200
@@ -0,0 +1,33 @@
+#!/usr/bin/perl -T
+
+use strict;
+use warnings;
+
+use Test::Exception;
+use Test::More tests => 2;
+
+use HTML::Tidy;
+
+my $tidy = HTML::Tidy->new;
+
+my $errbuf = do {
+    local $/;
+    readline(*DATA);
+};
+
+my $ret = $tidy->_parse_errors('fake_filename.html', $errbuf, "\n");
+is( $ret, 1, 'encountered 1 parsing error' );
+is( scalar @{$tidy->{messages}},  7, 'got 7 messages when parsing errors' );
+
+__DATA__
+line 1 column 1 - Warning: missing <!DOCTYPE> declaration
+line 1 column 1 - Warning: plain text isn\'t allowed in <head> elements
+line 1 column 1 - Info: <head> previously mentioned
+line 1 column 1 - Warning: inserting implicit <body>
+line 1 column 13 - Warning: missing </b>
+line 1 column 1 - Warning: inserting missing \'title\' element
+Info: Document content looks like HTML 3.2
+
+FAKE_ERROR_TYPE
+5 warnings, 0 errors were found!
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/t/parse.t new/HTML-Tidy-1.60/t/parse.t
--- old/HTML-Tidy-1.56/t/parse.t        1970-01-01 01:00:00.000000000 +0100
+++ new/HTML-Tidy-1.60/t/parse.t        2017-09-13 17:29:15.000000000 +0200
@@ -0,0 +1,18 @@
+#!/usr/bin/perl -T
+
+use strict;
+use warnings;
+
+use Test::Exception;
+use Test::More tests => 2;
+
+use HTML::Tidy;
+
+my $tidy = HTML::Tidy->new;
+isa_ok( $tidy, 'HTML::Tidy' );
+
+my $expected_pattern = 'Usage: parse($filename,$str [, $str...])';
+throws_ok {
+    $tidy->parse('fake-filename.txt');
+} qr/\Q$expected_pattern\E/,
+'parse() dies when not given a string or array of strings to parse';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTML-Tidy-1.56/t/unicode-nbsp.t 
new/HTML-Tidy-1.60/t/unicode-nbsp.t
--- old/HTML-Tidy-1.56/t/unicode-nbsp.t 2013-09-23 00:12:06.000000000 +0200
+++ new/HTML-Tidy-1.60/t/unicode-nbsp.t 2017-09-13 17:29:15.000000000 +0200
@@ -3,18 +3,21 @@
 use warnings;
 use strict;
 
-use Test::More tests => 2;
+use Test::More tests => 3;
 
 use HTML::Tidy;
 
 use Encode;
 
 my $bytes_string = "\x{c2}\x{a0}"; #UTF8 nbsp
-my $perl_chars   = Encode::decode('utf8',$bytes_string); #perl chars of utf8 
byte string
-
-my $expected_after_tidy = "&nbsp;\n"; # HTML::Tidy adds a \n and should 
convert the nbsp to an HTML entity
+my $perl_chars   = Encode::decode('utf8',$bytes_string); # Perl chars of utf8 
byte string
 
 my $tidy = HTML::Tidy->new({ show_body_only => 1 });
 
+my $newline = $tidy->clean( '' ); # HTML::Tidy adds a platform-dependent 
"newline".
+like( $newline, qr/^\r?\n?$/, 'Tidy Newline' ); # should be CR or LF or both
+
+my $expected_after_tidy = "&nbsp;$newline"; # HTML::Tidy should convert the 
nbsp to an HTML entity (and add a newline).
+
 is( $tidy->clean( $perl_chars ), $expected_after_tidy, 'Perl chars OK' );
 is( $tidy->clean( $bytes_string ), $expected_after_tidy, 'Byte string OK' );

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
#  override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
preamble: |-
  BuildRequires:  libtidyp-devel
  BuildRequires:  perl(Alien::Tidyp)
  Requires:       perl(LWP::Simple)
  BuildRequires:  perl(LWP::Simple)
  BuildRequires:  perl(Test::Exception)
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

Reply via email to