From cf89598163ad6daebbff8613dbf0bc589b212ef3 Mon Sep 17 00:00:00 2001
From: jensilo <k@jensheise.com>
Date: Sat, 23 Dec 2023 16:38:08 +0100
Subject: [PATCH] fix docs and templates missing extra.before for tag

---
 docs/templates/paris/dienstleistung.json         | 6 +++++-
 docs/templates/paris/eigenschaft.json            | 6 +++++-
 docs/templates/paris/kontext.json                | 6 +++++-
 docs/templates/paris/stakeholder.json            | 6 +++++-
 docs/templates/paris/technische-eigenschaft.json | 6 +++++-
 docs/templates/paris/technische.json             | 6 +++++-
 docs/templates/paris/ziel.json                   | 6 +++++-
 src/app/eiffel/parser.go                         | 4 ++--
 8 files changed, 37 insertions(+), 9 deletions(-)

diff --git a/docs/templates/paris/dienstleistung.json b/docs/templates/paris/dienstleistung.json
index 0198d93..fcc2661 100644
--- a/docs/templates/paris/dienstleistung.json
+++ b/docs/templates/paris/dienstleistung.json
@@ -135,7 +135,11 @@
       "name": "Punkt",
       "type": "equals",
       "value": ".",
-      "size": "small"
+      "size": "small",
+      "extra": {
+        "before": "",
+        "after": ""
+      }
     }
   },
   "variants": {
diff --git a/docs/templates/paris/eigenschaft.json b/docs/templates/paris/eigenschaft.json
index f4e83b9..9146a63 100644
--- a/docs/templates/paris/eigenschaft.json
+++ b/docs/templates/paris/eigenschaft.json
@@ -70,7 +70,11 @@
       "name": "Punkt",
       "type": "equals",
       "value": ".",
-      "size": "small"
+      "size": "small",
+      "extra": {
+        "before": "",
+        "after": ""
+      }
     }
   },
   "variants": {
diff --git a/docs/templates/paris/kontext.json b/docs/templates/paris/kontext.json
index 20904c2..9465000 100644
--- a/docs/templates/paris/kontext.json
+++ b/docs/templates/paris/kontext.json
@@ -86,7 +86,11 @@
       "name": "Punkt",
       "type": "equals",
       "value": ".",
-      "size": "small"
+      "size": "small",
+      "extra": {
+        "before": "",
+        "after": ""
+      }
     }
   },
   "variants": {
diff --git a/docs/templates/paris/stakeholder.json b/docs/templates/paris/stakeholder.json
index 1c009b3..515a893 100644
--- a/docs/templates/paris/stakeholder.json
+++ b/docs/templates/paris/stakeholder.json
@@ -90,7 +90,11 @@
       "name": "Punkt",
       "type": "equals",
       "value": ".",
-      "size": "small"
+      "size": "small",
+      "extra": {
+        "before": "",
+        "after": ""
+      }
     }
   },
   "variants": {
diff --git a/docs/templates/paris/technische-eigenschaft.json b/docs/templates/paris/technische-eigenschaft.json
index 17bdf72..738547a 100644
--- a/docs/templates/paris/technische-eigenschaft.json
+++ b/docs/templates/paris/technische-eigenschaft.json
@@ -87,7 +87,11 @@
       "name": "Punkt",
       "type": "equals",
       "value": ".",
-      "size": "small"
+      "size": "small",
+      "extra": {
+        "before": "",
+        "after": ""
+      }
     }
   },
   "variants": {
diff --git a/docs/templates/paris/technische.json b/docs/templates/paris/technische.json
index 228c685..b6c01b7 100644
--- a/docs/templates/paris/technische.json
+++ b/docs/templates/paris/technische.json
@@ -129,7 +129,11 @@
       "name": "Punkt",
       "type": "equals",
       "value": ".",
-      "size": "small"
+      "size": "small",
+      "extra": {
+        "before": "",
+        "after": ""
+      }
     }
   },
   "variants": {
diff --git a/docs/templates/paris/ziel.json b/docs/templates/paris/ziel.json
index 7b1416e..d2b4934 100644
--- a/docs/templates/paris/ziel.json
+++ b/docs/templates/paris/ziel.json
@@ -123,7 +123,11 @@
       "name": "Punkt",
       "type": "equals",
       "value": ".",
-      "size": "small"
+      "size": "small",
+      "extra": {
+        "before": "",
+        "after": ""
+      }
     }
   },
   "variants": {
diff --git a/src/app/eiffel/parser.go b/src/app/eiffel/parser.go
index d805640..ccda7b2 100644
--- a/src/app/eiffel/parser.go
+++ b/src/app/eiffel/parser.go
@@ -81,8 +81,8 @@ type BasicRule struct {
 	// However, if this flag is set to true, the segment will not be displayed at all.
 	IgnoreMissingWhenOptional bool `json:"ignoreMissingWhenOptional"`
 	// Size is the expected size of the rule's value. It is optional. Possible values are:
-	//  - "small" (default): The value is expected to be a short string. 1/4 of the input field width.
-	//  - "medium": The value is expected to be a medium-sized string. 2/4 of the input field width.
+	//  - "small": The value is expected to be a short string. 1/4 of the input field width.
+	//  - "medium" (default): The value is expected to be a medium-sized string. 2/4 of the input field width.
 	//  - "large": The value is expected to be a large string. 3/4 of the input field width.
 	//  - "full": The value is expected to be a very large string. 4/4 of the input field (this will be a textarea) width.
 	// For now this should not be overcomplicated.
-- 
GitLab