Author: sebastien.lelong
Date: Sat Sep  6 02:45:19 2008
New Revision: 279

Modified:
    trunk/tools/jsg_validator.py

Log:
only remove dashes at the beginning of field content

Modified: trunk/tools/jsg_validator.py
==============================================================================
--- trunk/tools/jsg_validator.py        (original)
+++ trunk/tools/jsg_validator.py        Sat Sep  6 02:45:19 2008
@@ -84,7 +84,7 @@
                        if l.strip() == '--':
                                # got end of block
                                break
-                       c += l.replace("-- ","")
+                       c += re.sub("^--\s","",l)
                else:
                        errors.append("%d: cannot find end of field content %s" 
% (i,field))
                return c

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to