|
From: <sto...@us...> - 2007-06-15 15:28:17
|
Revision: 38
http://svn.sourceforge.net/fb2-perl-tools/?rev=38&view=rev
Author: storchaka
Date: 2007-06-15 08:28:18 -0700 (Fri, 15 Jun 2007)
Log Message:
-----------
FictionBook2.1 support (<th> and <td>).
Modified Paths:
--------------
trunk/fb2-python-tools/fb2format.py
Modified: trunk/fb2-python-tools/fb2format.py
===================================================================
--- trunk/fb2-python-tools/fb2format.py 2007-06-15 15:24:00 UTC (rev 37)
+++ trunk/fb2-python-tools/fb2format.py 2007-06-15 15:28:18 UTC (rev 38)
@@ -33,7 +33,7 @@
_empty_element_re = re.compile( r'<([^ >]+)([^>]*)(?<!/)></\1>' )
def _make_tags_switch( tags ):
return re.compile( '(%s)' % '|'.join( '<%s(?: [^>]*)?>.*?</%s>' % (tag, tag) for tag in tags ), re.DOTALL )
-_text_re = _make_tags_switch( ('p', 'v', 'subtitle', 'text-author') )
+_text_re = _make_tags_switch( ('p', 'v', 'subtitle', 'text-author', 'th', 'td') )
_oneline_re = _make_tags_switch( ('title', 'author', 'translator') )
_binary_re = re.compile( '(<binary [^>]*>)([^<]*)(</binary>)', re.DOTALL )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|