]> xenbits.xensource.com Git - libvirt.git/commit
xml: omit domain name from comment if it contains double hyphen
authorJán Tomko <jtomko@redhat.com>
Tue, 23 Oct 2012 12:16:44 +0000 (14:16 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 23 Oct 2012 12:24:31 +0000 (14:24 +0200)
commit9b704ab8235af010b1fda4886201aab02098b969
tree43a0da6790e13c24f1ac2eb97786c18e2ce39d60
parentb326765c801ef5c291cbd9ab2c51b20128047b56
xml: omit domain name from comment if it contains double hyphen

We put a comment containing "virsh edit <domain_name>" at the start of
the XML. W3C recommendation forbids the use of "--" in comments [1] and
libvirt can't parse it either. This patch omits the domain name if it
contains a double hyphen.

[1] http://www.w3.org/TR/REC-xml/#sec-comments
src/util/xml.c