SOURCES: nagios-jabber.alert - embed html body in <p> tag for libx...
glen
glen at pld-linux.org
Thu Dec 7 16:53:10 CET 2006
Author: glen Date: Thu Dec 7 15:53:10 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- embed html body in <p> tag for libxml2 for html mode
---- Files affected:
SOURCES:
nagios-jabber.alert (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SOURCES/nagios-jabber.alert
diff -u SOURCES/nagios-jabber.alert:1.6 SOURCES/nagios-jabber.alert:1.7
--- SOURCES/nagios-jabber.alert:1.6 Thu Dec 7 16:40:14 2006
+++ SOURCES/nagios-jabber.alert Thu Dec 7 16:53:05 2006
@@ -94,7 +94,7 @@
xbody = node.newChild(None, "body", None)
html_ns = xbody.newNs('http://www.w3.org/1999/xhtml', None)
xbody.setNs(html_ns)
- doc = libxml2.parseDoc(body)
+ doc = libxml2.parseDoc('<p>' + body + '</p>')
xbody.addChild(doc.getRootElement())
self.stream.send(msg)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/nagios-jabber.alert?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list