release-notes/devel/xmlbeats xmlfix,1.3,1.4

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Tue Apr 3 22:01:39 UTC 2007


Author: pfrields

Update of /cvs/docs/release-notes/devel/xmlbeats
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12523

Modified Files:
	xmlfix 
Log Message:
Remove those pesky <h2> codes


Index: xmlfix
===================================================================
RCS file: /cvs/docs/release-notes/devel/xmlbeats/xmlfix,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- xmlfix	3 Apr 2007 03:44:20 -0000	1.3
+++ xmlfix	3 Apr 2007 22:01:37 -0000	1.4
@@ -45,6 +45,7 @@
 
     # Yes this is hacky. So sue me.
     sed -i "s@^<section@<section id=\"sn-${i//${BEATDIR}\//}\"@" $OUTXML
-    NEWTITLE=$(grep 'RAW HTML:' $OUTXML | sed 's at .\+<h2>\([^<]\+\).\+@\1@')
+    NEWTITLE=$(grep '<h2>' $OUTXML | sed 's at .\+<h2>\([^<]\+\).\+@\1@')
     sed -i "s@^  <title>.\+@  <title>${NEWTITLE}</title>@" $OUTXML
+    sed -i "s@<\(/\)\?h2>@<\1title>@g" $OUTXML
 done




More information about the Fedora-docs-commits mailing list