Re: BUG Report: HTML::Parser 3.03 examples.

Michael A. Chase (mchase@ix.netcom.com)
Fri, 14 Jan 2000 16:37:59 -0800


------=_NextPart_000_01DD_01BF5EAD.B7AFFB20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Oops.  That's a result of a patch I submitted a while back.

A patch to fix it is attached 
-- 
Mac :})
----- Original Message ----- 
From: William Deegan <bdeegan@iescrow.com>
To: <libwww@perl.org>
Sent: Friday, January 14, 2000 15:40
Subject: BUG Report: HTML::Parser 3.03 examples.


> ./htext /tmp/newlogin.html 
> Bad constructor option 'marked_sections' at ./htext line 23
> 
> When I run the htext in the example directory I get the above warning.


------=_NextPart_000_01DD_01BF5EAD.B7AFFB20
Content-Type: application/octet-stream;
	name="HTML-Parser-3.03_mac-1.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="HTML-Parser-3.03_mac-1.patch"

# Allow marked_sections instead of marked_section
# Michael A. Chase, mchase@ix.netcom.com
# 
# To apply this patch:
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'applypatch' program with this patch file as input.
#
# If you do not have 'applypatch', it is part of the 'makepatch' package
# that you can fetch from the Comprehensive Perl Archive Network:
# http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
# In the above URL, 'x' should be 2 or higher.
#
# To apply this patch without the use of 'applypatch':
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'patch' program with this file as input.
#
#### End of Preamble ####

#### Patch data follows ####
diff -ub 'old\HTML-Parser-3.03\Parser.pm' 'new\HTML-Parser-3.03\Parser.pm'
Index: ./Parser.pm
--- ./Parser.pm	Fri Jan 14 05:37:56 2000
+++ ./Parser.pm	Fri Jan 14 16:32:27 2000
@@ -22,7 +22,7 @@
     qw( declaration comment start end text process default );
 my %allowed_options = map { ($_ => 1) } # not netscape_buggy_comment!
     qw( strict_comment strict_names boolean_attribute_value
-	xml_mode unbroken_text marked_section );
+	xml_mode unbroken_text marked_sections );
 
 sub new
 {
@@ -417,7 +417,7 @@
 delay the text event until the following (non-text) event has been
 recognized by the parser.
 
-=item $p->marked_section( [$bool] )
+=item $p->marked_sections( [$bool] )
 
 By default, section markings like <![CDATA[...]]> are treated like
 ordinary text.  When this attribute is enabled section markings are
#### End of Patch data ####

#### ApplyPatch data follows ####
# Data version        : 1.0
# Date generated      : Fri Jan 14 16:33:18 2000
# Generated by        : makepatch 2.00_03
# Recurse directories : Yes
# Excluded files      : (\A|.*/)CVS(/.*|\Z)
#                       (\A|.*/)RCS(/.*|\Z)
#                       ,v\Z
#                       (\A|.*/)SCCS(/.*|\Z)
#                       (\A|.*/)[sp]\..+\Z
# p 'Parser.pm' 29377 947896347 037777700600
#### End of ApplyPatch data ####

#### End of Patch kit [created: Fri Jan 14 16:33:18 2000] ####
#### Patch checksum: 39 1407 39385 ####
#### Checksum: 58 2119 33530 ####

------=_NextPart_000_01DD_01BF5EAD.B7AFFB20--