changeset 37:b574990e90a5

Update Format spec for additional handling
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 15 Apr 2016 15:15:44 +0200
parents ca66763b6524
children 5354cbda7188
files README
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/README	Mon Apr 11 14:59:18 2016 +0200
+++ b/README	Fri Apr 15 15:15:44 2016 +0200
@@ -26,8 +26,12 @@
  - A Question is defined by last unquoted string before a line starting
    with "Answer"
  - A multiple choice Answer are all strings that match the pattern
-  "\"(.*)\",(\\d+),(\\d+\\.\\d+)" in all lines following a line
+  "\"(.*)\",(\\d+)?,(\\d+\\.+\\d+)?" in all lines following a line
   "Answer,Votes,Percent" before the next Question.
+ - A special case is made for lines in a multiple choice block that
+  contain multiple comma seperated quoted strings. In that case the
+  line is interpreted as each quotet string containing an unfilled
+  answer.
  - A free text answer is a Quoted string following a Question and
  the single line "Answer".
  All text before the next question is interpreted as free text responses.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)