/[navidoc]/navidoc/navidoc/link/__init__.py
ViewVC logotype

Diff of /navidoc/navidoc/link/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by humppake, Fri May 23 14:37:14 2003 UTC revision 1.20 by humppake, Fri May 23 15:00:52 2003 UTC
# Line 110  class Link (navidoc.Element): Line 110  class Link (navidoc.Element):
110          if not self.error and set_title:          if not self.error and set_title:
111              file = open(path)                              file = open(path)                
112              title = re.compile('<title>([^<]*)</title>')              title = re.compile('<title>([^<]*)</title>')
113              strip = re.compile('[a-zA-ZåäöÅÄÖ ]*')              strip = re.compile('[a-zA-ZåäöÅÄÖ\- ]*')
114              title = title.findall(file.read())              title = title.findall(file.read())
115              file.close()              file.close()
116              if len(title) > 0: self.title = strip.findall(title[0])[0]              if len(title) > 0: self.title = strip.findall(title[0])[0]

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26