Changeset 1091


Ignore:
Timestamp:
06.07.2010 22:12:37 (19 months ago)
Author:
zmsdev
Message:

Applied fix for line-breaks within html-tags for search_quote().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/_zcatalogmanager.py

    r1084 r1091  
    8181def search_quote(s, maxlen=255, tag='·'): 
    8282  # remove all tags. 
    83   s = re.sub( '<(.*?)>', '', s) 
     83  s = re.sub( '<((.|\n|\r|\t)*?)>', '', s) 
    8484  # limit characters. 
    8585  if len(s) > maxlen: 
Note: See TracChangeset for help on using the changeset viewer.