Accepting request 393821 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/393821
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Strip?expand=0&rev=5
This commit is contained in:
Stephan Kulow
2016-05-20 05:20:30 +00:00
committed by Git OBS Bridge
parent 1cc7968644
commit d2b065b55d
4 changed files with 36 additions and 26 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3f310370d0a677d17ca539508afb054be869b68acaec9aea239a057aa04d81d7
size 15040

3
HTML-Strip-2.10.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2af30a61f1ecc0bea983043c8078e48380ccb0319388a74483e09aa782f1ccfa
size 15333

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu May 5 09:22:45 UTC 2016 - coolo@suse.com
- updated to 2.10
see /usr/share/doc/packages/perl-HTML-Strip/Changes
2.10 Fri Apr 22 12:16:17 BST 2016
- fix to building on Windows / MSVC (RT#102389)
- fix duplicate DESTROY in Strip(.pm,.xs) warning (RT#104379, Debian bug #785032)
-------------------------------------------------------------------
Thu Apr 16 21:43:37 UTC 2015 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-HTML-Strip
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 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,7 +17,7 @@
Name: perl-HTML-Strip
Version: 2.09
Version: 2.10
Release: 0
%define cpan_name HTML-Strip
Summary: Perl extension for stripping HTML markup from text
@@ -34,43 +34,43 @@ Requires: perl(Test::Exception)
%{perl_requires}
%description
This module simply strips HTML-like markup from text in a very quick and
brutal manner. It could quite easily be used to strip XML or SGML from text
as well; but removing HTML markup is a much more common problem, hence this
module lives in the HTML:: namespace.
This module simply strips HTML-like markup from text rapidly and brutally.
It could easily be used to strip XML or SGML markup instead; but as
removing HTML is a much more common problem, this module lives in the
HTML:: namespace.
It is written in XS, and thus about five times quicker than using regular
expressions for the same task.
It does _not_ do any syntax checking (if you want that, use the
HTML::Parser manpage), instead it merely applies the following rules:
It does _not_ do any syntax checking (if you want that, use HTML::Parser),
instead it merely applies the following rules:
* 1
Anything that looks like a tag, or group of tags will be replaced with a
single space character. Tags are considered to be anything that starts
with a '<' and ends with a '>'; with the caveat that a '>' character may
appear in either of the following without ending the tag:
Anything that looks like a tag, or group of tags will be replaced with a
single space character. Tags are considered to be anything that starts with
a '<' and ends with a '>'; with the caveat that a '>' character may appear
in either of the following without ending the tag:
* Quote
Quotes are considered to start with either a ''' or a '"' character,
and end with a matching character _not_ preceded by an even number or
escaping slashes (i.e. '\"' does not end the quote but '\\\\"' does).
Quotes are considered to start with either a ''' or a '"' character, and
end with a matching character _not_ preceded by an even number or escaping
slashes (i.e. '\"' does not end the quote but '\\\\"' does).
* Comment
If the tag starts with an exclamation mark, it is assumed to be a
declaration or a comment. Within such tags, '>' characters do not end
the tag if they appear within pairs of double dashes (e.g. '<!-- <a
href="old.htm">old page</a> -->' would be stripped completely). Inside
a comment, no parsing for quotes is done as well. (That means '<!--
comment with ' quote " -->' are entirely stripped.)
If the tag starts with an exclamation mark, it is assumed to be a
declaration or a comment. Within such tags, '>' characters do not end the
tag if they appear within pairs of double dashes (e.g. '<!-- <a
href="old.htm">old page</a> -->' would be stripped completely). No parsing
for quotes is performed within comments, so for instance '<!-- comment with
both ' quote types " -->' would be entirely stripped.
* 2
Anything the appears within so-called _strip tags_ is stripped as well.
By default, these tags are 'title', 'script', 'style' and 'applet'.
Anything the appears within what we term _strip tags_ is stripped as well.
By default, these tags are 'title', 'script', 'style' and 'applet'.
HTML::Strip maintains state between calls, so you can parse a document in
chunks should you wish. If one chunk ends half-way through a tag, quote,