koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/misc/translator TmplTokenizer.pm,1.27,1.28


From: Ambrose C. LI
Subject: [Koha-cvs] CVS: koha/misc/translator TmplTokenizer.pm,1.27,1.28
Date: Tue, 24 Feb 2004 22:49:37 -0800

Update of /cvsroot/koha/koha/misc/translator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9557

Modified Files:
        TmplTokenizer.pm 
Log Message:
Try to be a little bit more helpful with "Strange attribute syntax..."
warnings. (Actually, is syntax like foo="bar"foo="bar" actually valid?)


Index: TmplTokenizer.pm
===================================================================
RCS file: /cvsroot/koha/koha/misc/translator/TmplTokenizer.pm,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** TmplTokenizer.pm    25 Feb 2004 06:25:29 -0000      1.27
--- TmplTokenizer.pm    25 Feb 2004 06:49:35 -0000      1.28
***************
*** 296,300 ****
            $this->_set_fatal( 1 );
        } else {
!           warn_normal "Strange attribute syntax: $s\n", $lc;
        }
      }
--- 296,306 ----
            $this->_set_fatal( 1 );
        } else {
!           # There's something wrong with the attribute syntax.
!           # We might be able to deduce a likely cause by looking more.
!           if ($s =~ /^[a-z0-9]/is && "<foo $s>" =~ /^$re_tag_compat$/s) {
!               warn_normal "Probably missing whitespace before or missing 
quotation mark near: $s\n", $lc;
!           } else {
!               warn_normal "Strange attribute syntax: $s\n", $lc;
!           }
        }
      }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]