XOYZ69 / school_reports

Generate custom reports for your school based on a .json file
0 stars 0 forks source link

In specific situations ' - ' can result in a fatal error if it is used together with '::' #2

Closed XOYZ69 closed 1 month ago

XOYZ69 commented 1 month ago

Daily report of @Prixix

"10.07.2023 - 15.07.2023": {
    "11.07.2023": [
        "Rezeptur - Labels ändern::Programmierung | Erstellung Testprotokoll"
    ]
}

The following line result in an error:

"Rezeptur - Labels ändern::Programmierung | Erstellung Testprotokoll"

but if you switch it up for this:

"Rezeptur: Labels ändern::Programmierung | Erstellung Testprotokoll"

everything works

In the content.text file you can see that there is a problem with the conversion from the .json file to the .tex file. image

It looks like the above but it should look like this: image

The problem appears to be a mixture of ' - ' and ' | '. For now there is a workaround...

If you have an entry where ' | ' is used after '::' then you can't use ' - ' before '::'