# HG changeset patch # User Andre Heinecke # Date 1475672360 -7200 # Node ID 08cca723e37d94a6041060e93635e6cbf4f24f35 # Parent 12b160bc2c2ea1763dd7b3ee19a84696f024f4d0 Move pre into html style to keep it out of xlsx diff -r 12b160bc2c2e -r 08cca723e37d src/converter.cpp --- a/src/converter.cpp Wed Oct 05 14:58:49 2016 +0200 +++ b/src/converter.cpp Wed Oct 05 14:59:20 2016 +0200 @@ -73,7 +73,7 @@ ">
%1
"); mAnswerChoiceStyle= QStringLiteral("Answer"); mChoiceTextStyle= QStringLiteral("%1"); - mChoiceVotesStyle = QStringLiteral("%1"); + mChoiceVotesStyle = QStringLiteral("
%1
"); mAnswerTextStyle = QStringLiteral("Answer
"); mFreeTextStyle = QStringLiteral("%1
"); @@ -337,7 +337,7 @@ makeBar(html, percent, doc); xlsx.write(row, 2, percent == 0 ? QVariant() : percent); const QString numStr = choiceMatch.captured("num"); - const QString numVotesString = QString("
%1% | %2 Number of votes
"). + const QString numVotesString = QString("%1% | %2 Number of votes"). arg(percentStr.isEmpty() ? QStringLiteral("0") : percentStr, 8). arg(numStr.isEmpty() ? QStringLiteral("0") : numStr, 3); html << mChoiceVotesStyle.arg(numVotesString); diff -r 12b160bc2c2e -r 08cca723e37d src/l10n/main_de_DE.ts --- a/src/l10n/main_de_DE.ts Wed Oct 05 14:58:49 2016 +0200 +++ b/src/l10n/main_de_DE.ts Wed Oct 05 14:59:20 2016 +0200 @@ -1,6 +1,6 @@ - + @@ -138,7 +138,7 @@ Output format (default xlsx). - Ausgabeformat (standard xlsx) + Ausgabeformat (standard xlsx)