[yum-cvs] /yum-utils repo-rss.py,1.4.2.1,1.4.2.2
Tim Lauridsen
timlau at linux.duke.edu
Wed Feb 14 14:32:25 UTC 2007
Update of /home/groups/yum/cvs//yum-utils
In directory login1.linux.duke.edu:/tmp/cvs-serv14720
Modified Files:
Tag: yum-utils-1_0_X
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.4.2.1
retrieving revision 1.4.2.2
diff -u -r1.4.2.1 -r1.4.2.2
--- repo-rss.py 14 Feb 2007 10:45:26 -0000 1.4.2.1
+++ repo-rss.py 14 Feb 2007 14:32:23 -0000 1.4.2.2
@@ -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