Changeset 1640


Ignore:
Timestamp:
04/16/07 14:19:45 (13 years ago)
Author:
jukka
Message:

Comments were wrong in last commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LeMillTool.py

    r1639 r1640  
    3939hreflinks=sre.compile('<a href="(.*?)">(.*?)</a>') 
    4040httplinks=sre.compile('(?<!")(http://[^ \t\n\r<>"]+)') 
    41 lessthan=sre.compile('(<)(?!a |/a)') # ignore links, aka those beginning with <a 
    42 greaterthan=sre.compile('(?<!" |/a|.")(>)')  
    43 # ignore links, aka those ending with '">' or 'a>'  
    44 # greaterthan is quite brittle, as <a href="something" > won't go through (whitespace), but this won't get used if structure is already recognized as html (it has <p>:s, <br />:s or <embed:s) so the stuff it is processing is autogenerated links and these it will catch. 
    45  
     41lessthan=sre.compile('(<)(?!a |/a)') # ignore links, aka those beginning with '<a' or '</a' 
     42greaterthan=sre.compile('(?<!" |/a|.")(>)') # ignore links, aka those ending with '" >','">' or '/a>'  
    4643 
    4744class LeMillTool(PropertyManager, UniqueObject, SimpleItem): 
Note: See TracChangeset for help on using the changeset viewer.