dtdparse-trackers
[Top] [All Lists]

[Dtdparse-trackers] [ dtdparse-Support Requests-2689182 ] Comment parsing has an error

2009-03-16 17:22:12
Support Requests item #2689182, was opened at 2009-03-16 17:21
Message generated for change (Tracker Item Submitted) made by cheshirecatnyc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=399000&aid=2689182&group_id=30351

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: dtdparse
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David Levine (cheshirecatnyc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Comment parsing has an error

Initial Comment:
The current parse for SGML comments will match from <!-- to -->.  That is slightly off.  The end delimeter must allow whitespace between the hyphens and the right angle bracket.

So I would change line 1224 of DTD.pm from this:
    if ($dtd =~ /^<!--.*?-->/s) {
                           
To this:
    if ($dtd =~ /^<!--.*?--\s*>/s) {
                           ---



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=399000&aid=2689182&group_id=30351

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com