]> git.pld-linux.org Git - packages/nagios-alert-jabber.git/commitdiff
- embed html body in <p> tag for libxml2 for html mode
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 7 Dec 2006 15:53:05 +0000 (15:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-jabber.alert -> 1.7

nagios-jabber.alert

index 46121886e07a8dc2cf9ac5454986795a8a5061b9..4f4419783444252470af87d663d2f3e8098292e1 100644 (file)
@@ -94,7 +94,7 @@ class Client(JabberClient):
                                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)
This page took 0.055296 seconds and 4 git commands to generate.