aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-10-07 14:16:48 +0200
committerVolker Krause <[email protected]>2017-10-07 14:16:48 +0200
commit109fc5ca5db7aeeeba831b99619ffff31938ec15 (patch)
treeaee692ad6ea094d5051959304764d03475690922
parent46bb8180212387667838ce6fa260749586b8d517 (diff)
Generate valid XML
This prevents the messagelib rendertest to choke on vcard attachments.
-rw-r--r--src/akonadi-contacts/standardcontactformatter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/akonadi-contacts/standardcontactformatter.cpp b/src/akonadi-contacts/standardcontactformatter.cpp
index 11a811a..b61d792 100644
--- a/src/akonadi-contacts/standardcontactformatter.cpp
+++ b/src/akonadi-contacts/standardcontactformatter.cpp
@@ -313,7 +313,7 @@ QString StandardContactFormatter::toHtml(HtmlForm form) const
"<table cellpadding=\"3\" cellspacing=\"1\">"
"<tr>"
"<td align=\"right\" valign=\"top\" width=\"30%\" rowspan=\"3\">"
- "<img src=\"%1\" width=\"100\" vspace=\"1\">" // image
+ "<img src=\"%1\" width=\"100\" vspace=\"1\"/>" // image
"</td>"
"<td colspan=\"2\" align=\"left\" width=\"70%\"><font size=\"+2\"><b>%2</b></font></td>" // name
"</tr>"
@@ -339,8 +339,8 @@ QString StandardContactFormatter::toHtml(HtmlForm form) const
if (group.readEntry("QRCodes", true)) {
strAddr.append(QString::fromLatin1(
"<p align=\"center\">"
- "<img src=\"%1\" vspace=\"1\">"
- "<img src=\"%2\" vspace=\"1\">"
+ "<img src=\"%1\" vspace=\"1\"/>"
+ "<img src=\"%2\" vspace=\"1\"/>"
"</p>"
)
.arg(QStringLiteral("datamatrix"))