# HG changeset patch # User Andre Heinecke # Date 1475670363 -7200 # Node ID 2f81925b0eeee5cb95a4cf5f3ad41170c161cb4c # Parent a8cd9b27e3d5f96a3de388d6aba1f6a8376173c2 Make html valid and add title diff -r a8cd9b27e3d5 -r 2f81925b0eee src/converter.cpp --- a/src/converter.cpp Wed Oct 05 14:25:35 2016 +0200 +++ b/src/converter.cpp Wed Oct 05 14:26:03 2016 +0200 @@ -242,14 +242,17 @@ xlsx.setColumnWidth(26, sum + 1); xlsx.setColumnHidden(26, true); + const QString title = mTitle.isEmpty() ? DEFAULT_TITLE : mTitle; + int row = 1; - html << "" - ""; + html << QStringLiteral("" + "" + "%1" + "
").arg(title.toHtmlEscaped()); html << QStringLiteral("").arg(HTML_COL1_PERCENT); html << QStringLiteral("").arg(HTML_COL2_PERCENT); html << QStringLiteral("").arg(HTML_COL3_PERCENT); - const QString title = mTitle.isEmpty() ? DEFAULT_TITLE : mTitle; // Set the title of the Questionaire xlsx.write(row++, 1, title, mTitleFmt); html << mTitleStyle.arg(title.toHtmlEscaped());