library-web r392 - in trunk: . src



Author: fpeters
Date: Sat Mar  1 20:51:42 2008
New Revision: 392
URL: http://svn.gnome.org/viewvc/library-web?rev=392&view=rev

Log:
* src/lgo.py: more workarounds for id on article element of
release-notes.



Modified:
   trunk/ChangeLog
   trunk/src/lgo.py

Modified: trunk/src/lgo.py
==============================================================================
--- trunk/src/lgo.py	(original)
+++ trunk/src/lgo.py	Sat Mar  1 20:51:42 2008
@@ -842,8 +842,8 @@
                 # older release notes had <article id="article"
                 t = open(xml_file).read()
                 open(xml_file + '.fixed', 'w').write(
-                        t.replace('\n<article id="article" ', '\n<article '
-                        ).replace('\n<article ', '\n<article id="index" '
+                        re.sub(r'(<article id=")(.*?)(")', r'\1index\3', t).replace(
+                            '\n<article lang=', '\n<article id="index" lang='
                             ).replace('<sect1 id="index"', '<sect1 id="intro"'))
                 xml_file = xml_file + '.fixed'
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]