# HG changeset patch # User Andre Heinecke # Date 1475670533 -7200 # Node ID f3481e9e44b263171128de370ad3b7d6698d8f04 # Parent 2f81925b0eeee5cb95a4cf5f3ad41170c161cb4c Pre align number of votes diff -r 2f81925b0eee -r f3481e9e44b2 src/converter.cpp --- a/src/converter.cpp Wed Oct 05 14:26:03 2016 +0200 +++ b/src/converter.cpp Wed Oct 05 14:28:53 2016 +0200 @@ -337,10 +337,10 @@ 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"). - arg(percentStr.isEmpty() ? QStringLiteral("0") : percentStr). - arg(numStr.isEmpty() ? QStringLiteral("0") : numStr); - html << mChoiceVotesStyle.arg(numVotesString.toHtmlEscaped()); + 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); xlsx.write(row, 3, numVotesString, mChoiceVotesFmt); xlsx.setRowHeight(row, CHOICE_ROW_HEIGHT); /* As long as we can match a choice which is either before the next question