Probesys / lotemplate

LOTemplate is document generator used to create documents programatically (ODT, DOCX, PDF) from a template (DOCX or ODT) and a json file.
GNU Affero General Public License v3.0
23 stars 1 forks source link

[BUG] too_many_endif that should not arrive #34

Open philippe-levan opened 6 months ago

philippe-levan commented 6 months ago

Describe the bug

On the scan phase, the following odt file returns a "too_many_endif" error.

Test

[if $odoo(coop_forme_juridique) == SAS] [for $odoo(mandataires_sas)] [if [foritem type] == PP] [foritem nom], [foritem titre] ;  [endif] [endfor]

[endif]

To Reproduce

  1. send the previous file as a template
  2. look a the response

Expected behavior

The template is valid, it should be ok after the scan

Actual behavior

the program returns "too_many_endif"

System information

Debian

Version

1.5.2

Additional context

No response