[yum-cvs] /yum-utils repo-rss.py,1.5,1.6
Tim Lauridsen
timlau at linux.duke.edu
Wed Feb 14 14:31:20 UTC 2007
Update of /home/groups/yum/cvs//yum-utils
In directory login1.linux.duke.edu:/tmp/cvs-serv14615
Modified Files:
repo-rss.py
Log Message:
Add a better formating for description, get rid of the body tag for the xml
generated by repo-rss.
Thanks to Aurelien Bompard (rhbz #193111).
Index: repo-rss.py
===================================================================
RCS file: /home/groups/yum/cvs//yum-utils/repo-rss.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- repo-rss.py 14 Feb 2007 10:47:04 -0000 1.5
+++ repo-rss.py 14 Feb 2007 14:31:18 -0000 1.6
@@ -143,15 +143,9 @@
(date, author, desc) = e
date = time.strftime(clog_format, time.gmtime(float(date)))
changelog += '%s - %s\n%s\n\n' % (date, author, desc)
- body = item.newChild(None, "body", None)
- body.newNs(xhtml_ns, None)
- body.newChild(None, "p", escape(pkg.returnSimple('summary')))
- body.newChild(None, "pre", escape(pkg.returnSimple('description')))
- body.newChild(None, "p", 'Change Log:')
- body.newChild(None, "pre", escape(changelog))
- description = '<pre>%s - %s\n\n' % (escape(pkg.name),
+ description = '<p><strong>%s</strong> - %s</p>\n\n' % (escape(pkg.name),
escape(pkg.returnSimple('summary')))
- description += '%s\n\nChange Log:\n\n</pre>' % escape(pkg.returnSimple('description'))
+ description += '<p>%s</p>\n\n<p><strong>Change Log:</strong></p>\n\n' % escape(pkg.returnSimple('description').replace("\n", "<br />\n"))
description += escape('<pre>%s</pre>' % escape(changelog))
item.newChild(None, 'description', description)
More information about the Yum-cvs-commits
mailing list