Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[.match-solution-grouped] body is incorrectly filled with the section dividers === / == #8

Open
six5536 opened this issue Apr 3, 2023 · 0 comments

Comments

@six5536
Copy link

six5536 commented Apr 3, 2023

Describe the bug
[.match-solution-grouped] body is incorrectly filled with the section dividers

To Reproduce
Parse the following bitmark to produce JSON output:

[.match-solution-grouped:bitmark--]
[@id:245334]
[%1][%HK E.1 Infektionslehre]
[!Ordnen Sie die deutschen Begriffe den Fachbegriffen zu.]
===
Überwärmung
==
Calor
===
Rötung
==
Rubor
===
Schmerzen
==
Dolor
===
eingeschränkte Funktion
==
Functio laesa
===
Schwellung
==
Tumor
===

The following JSON is produced:

 {
   "bitmark": "[.match-solution-grouped:bitmark--]\n[@id:245334]\n[%1][%HK E.1 Infektionslehre]\n[!Ordnen Sie die deutschen Begriffe den Fachbegriffen zu.]\n===\nÜberwärmung\n==\nCalor\n===\nRötung\n==\nRubor\n===\nSchmerzen\n==\nDolor\n===\neingeschränkte Funktion\n==\nFunctio laesa\n===\nSchwellung\n==\nTumor\n===",
   "bit": {
     "type": "match-solution-grouped",
     "format": "bitmark--",
     "item": "1",
     "heading": {},
     "pairs": [
       {
         "key": "Überwärmung",
         "values": [
           "Calor"
         ],
         "item": "",
         "hint": "",
         "instruction": "",
         "isCaseSensitive": true,
         "isExample": false,
         "example": "",
         "isLongAnswer": false
       },
       {
         "key": "Rötung",
         "values": [
           "Rubor"
         ],
         "item": "",
         "hint": "",
         "instruction": "",
         "isCaseSensitive": true,
         "isExample": false,
         "example": "",
         "isLongAnswer": false
       },
       {
         "key": "Schmerzen",
         "values": [
           "Dolor"
         ],
         "item": "",
         "hint": "",
         "instruction": "",
         "isCaseSensitive": true,
         "isExample": false,
         "example": "",
         "isLongAnswer": false
       },
       {
         "key": "eingeschränkte Funktion",
         "values": [
           "Functio laesa"
         ],
         "item": "",
         "hint": "",
         "instruction": "",
         "isCaseSensitive": true,
         "isExample": false,
         "example": "",
         "isLongAnswer": false
       },
       {
         "key": "Schwellung",
         "values": [
           "Tumor"
         ],
         "item": "",
         "hint": "",
         "instruction": "",
         "isCaseSensitive": true,
         "isExample": false,
         "example": "",
         "isLongAnswer": false
       }
     ],
     "body": "===\n\n==\n===\n\n==\n===\n\n==\n===\n\n==\n===\n\n==\n===",
     "id": [
       "245334"
     ],
     "lead": "HK E.1 Infektionslehre",
     "instruction": "Ordnen Sie die deutschen Begriffe den Fachbegriffen zu."
   }
 }

Expected behavior
I think the body should be empty in this case, or populated with a body if there is one.

versions
1.0.38

nodayoshikazu added a commit that referenced this issue Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant