diff src/constants.h @ 65:defd29b9f25a

Converter: Unescape IMG and Latex references
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 26 Aug 2016 15:26:17 +0200
parents 5410f9f279ea
children fe55e1e5bbf2
line wrap: on
line diff
--- a/src/constants.h	Fri Aug 26 12:25:03 2016 +0200
+++ b/src/constants.h	Fri Aug 26 15:26:17 2016 +0200
@@ -75,6 +75,15 @@
  * @brief The pattern used to match a free text answer. */
 #define FREETXT_PATTERN "\"([^\"]*)\"?", QRegularExpression::MultilineOption
 
+/**
+ * @brief the pattern to unsecape images. */
+#define IMAGE_PATTERN "##(.*)##", QRegularExpression::MultilineOption
+
+
+/**
+ * @brief the pattern to unsecape latex. */
+#define LATEX_PATTERN "\\$\\$(.*)\\$\\$", QRegularExpression::MultilineOption
+
 #define TITLE_ROW_HEIGHT 30
 
 #define CHOICE_ROW_HEIGHT 30
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)