comparison src/converter.cpp @ 74:9a2e35a7c19c

Also escape leading equal sign in questions / choices
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 04 Oct 2016 17:12:02 +0200
parents a9bc9f907fcd
children 92139cc60121
comparison
equal deleted inserted replaced
73:a9bc9f907fcd 74:9a2e35a7c19c
149 static const QRegularExpression imgEx(IMAGE_PATTERN); 149 static const QRegularExpression imgEx(IMAGE_PATTERN);
150 static const QRegularExpression texEx(LATEX_PATTERN); 150 static const QRegularExpression texEx(LATEX_PATTERN);
151 151
152 unescapeRegex(str, imgEx); 152 unescapeRegex(str, imgEx);
153 unescapeRegex(str, texEx); 153 unescapeRegex(str, texEx);
154 if (str.startsWith("=")) {
155 str = " " + str;
156 }
154 } 157 }
155 158
156 void Converter::convertToXSLX(QTextStream& instream, QList<QFile *>outputs) 159 void Converter::convertToXSLX(QTextStream& instream, QList<QFile *>outputs)
157 { 160 {
158 Document xlsx; 161 Document xlsx;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)