Skip to content

Weird bug with .csv inside a .ifΒ #315

@serkonda7

Description

@serkonda7

I have these two files:

<!-- Kunden/st/Doku/backup_konzept.qd -->
.var {xHasRestores} {yes}
.var {xKdOrdner} {../Kunden/st/Doku}

.include {../../../_Templates/tpl_backup_konzept.qd}

<!-- _Templates/tpl_backup_konzept.qd -->
.doctype {paged}
.doclang {de}
.theme {paperwhite} layout:{minimal}

.font {Liberation Sans}

#! Anhang {#anhang}
.csv {.xKdOrdner/restores.csv}

.if {.xHasRestores}
  .csv {.xKdOrdner/restores.csv}

Directory structure is:

β”œβ”€β”€ Kunden
β”‚   └── st
β”‚       └── Doku
└── _Templates

When I run quarkdown c Kunden/st/Doku/backup_konzept.qd from the root i get this output:
Image

The weird thing is that inside the if a different base path is used so the .csv call becomes invalid.
When I remove the .if the file is included twice as it should be.

I was able to reproduce the issue on windows and Linux. The project is attached as zip.
bug.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions