This is an automated email from the git hooks/post-receive script.

dlintott-guest pushed a commit to branch master
in repository libhtml-tagfilter-perl.

commit fba849fc38a0c2a7bc3c96b8a0f2e4fb35bceb21
Author: Daniel Lintott <dan...@serverb.co.uk>
Date:   Fri Apr 11 19:38:02 2014 +0100

    Add patch to fix POD errors/warnings
---
 debian/patches/fix_pod_errors.patch | 97 +++++++++++++++++++++++++++++++++++++
 debian/patches/series               |  1 +
 2 files changed, 98 insertions(+)

diff --git a/debian/patches/fix_pod_errors.patch 
b/debian/patches/fix_pod_errors.patch
new file mode 100644
index 0000000..00490ba
--- /dev/null
+++ b/debian/patches/fix_pod_errors.patch
@@ -0,0 +1,97 @@
+Description: Fix errors in POD
+Author: Daniel Lintott <dan...@serverb.co.uk>
+Forwarded: https://rt.cpan.org/Ticket/Display.html?id=94646
+Last-Update: 2014-04-11
+--- a/TagFilter.pm
++++ b/TagFilter.pm
+@@ -47,7 +47,7 @@
+     my $cleaning_summary = $tf->report;
+     my @tags_removed = $tf->report;
+     my $error_log = $tf->error;
+-    
++
+ =head1 DESCRIPTION
+ 
+ HTML::TagFilter is a subclass of HTML::Parser with a single purpose: it will 
remove unwanted html tags and attributes from a piece of text. It can act in a 
more or less fine-grained way - you can specify permitted tags, permitted 
attributes of each tag, and permitted values for each attribute in as much 
detail as you like.
+@@ -118,26 +118,26 @@
+     skip_ltgt_entification => 1,
+     skip_mailto_entification => 1,
+   );
+-    
++
+ =over 4
+ 
+-=head3 log_rejects
++=item log_rejects
+ 
+ Set log to something true and the filter will keep a detailed log of all the 
tags it removes. The log can be retrieved by calling report(), which will 
return a summary in scalar context and a detailed AoH in list.
+ 
+-=head3 echo
++=item echo
+ 
+ Set echo to 1, or anything true, and the output of the filter will be sent 
straight to STDOUT. Otherwise the filter is silent until you call output().
+ 
+-=head3 verbose
++=item verbose
+ 
+ Set verbose to 1, or anything true, and error messages will be output to 
STDERR as well as being stockpiled ready for a call to error().
+ 
+-=head3 strip_comments
++=item strip_comments
+ 
+ Set strip_comments to 1 and comments will be stripped. If you don't, they 
won't.
+ 
+-=head3 skip_xss_protection
++=item skip_xss_protection
+ 
+ Unless you set skip_xss_protection to 1, the filter will postprocess some of 
its output to protect against common cross-site scripting attacks. 
+ 
+@@ -145,21 +145,21 @@
+ 
+     $self->xss_risky_attributes( qw(your list of attributes) );
+ 
+-=head3 skip_ltgt_entification
++=item skip_ltgt_entification
+ 
+ Disables the entification of < and > even if cross-site protection is on.
+ 
+-=head3 skip_mailto_entification
++=item skip_mailto_entification
+ 
+ Unless you specify otherwise, any mailto:url seen by the filter is completely 
turned into html entities. <a href="mailto:wr...@cpan.org";>will</a> becomes <a 
href="mailto:%77%72%6F%73%73%40%63%70%61%6E%2E%6F%72%67";>will</a>. This should 
defeat most email-harvesting software, but note that it has no effect on the 
text of your link, only its address. Links like <a 
href="mailto:wr...@cpan.org";>wr...@cpan.org</a> are only partly obscured and 
should be avoided.
+ 
+-=head3 other constructor parameters
++=item other constructor parameters
+ 
+ You can also supply values that will be used as default values for the 
methods of the same name:
+ 
+   xss_risky_attributes
+   xss_permitted_protocols
+-  
++
+ each of which expects a list of strings, and 
+ 
+   xss_allow_local_links
+@@ -174,11 +174,11 @@
+ 
+ =over 4
+ 
+-=head3 tag filter
++=item tag filter
+ 
+ Just checks that this tag is permitted, and blocks the whole thing if not. 
Applied to both opening and closing tags.
+ 
+-=head3 attribute filter
++=item attribute filter
+ 
+ Any tag that passes the tag filter will remain in the text, but the attribute 
filter will strip out of it any attributes that are not permitted, or which 
have values that are not permitted for that tag/attribute combination.
+ 
+@@ -486,7 +486,7 @@
+ but more useful, because it'll fit in a oneliner. eg:
+ 
+     print $tf->filter( $pages{$_} ) for keys %pages;
+-    
++
+ Note that calling filter() will clear anything that was waiting in the output 
buffer, and will clear the buffer again when it's finished. it's meant to be a 
one-shot operation and doesn't co-operate well. use parse() and output() if you 
want to daisychain.
+ 
+ =cut
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..41042ea
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_pod_errors.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libhtml-tagfilter-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to