-
Notifications
You must be signed in to change notification settings - Fork 241
Description
Environment
Carbone Version: Studio with API 4.x.x
Node Version: -
Browsers: Firefox Dev Edition 133.0b9 (64-bit)
Desktop OS: Debian Trixie
Other: LibreOffice Community / Version: 24.8.3.2 (X86_64)
Expected Behaviour
In both case legend should be Titles above the Pictures.
Actual Behaviour
Somehow, in the buggedTemplate.odt ( available in the Reproduction Link section ), the Titles are rendered first followed by the Pictures all in one line.
Steps to reproduce
Steps to reproduce the bug:
- Create a new LibreOffice Writer file
- Create a table inside containing the Object repetition like :
| {d.legend[i].att} {d.legend[i+1].att} |
|---|
| Image {d.legend[i].val} description//Image {d.legend[i+1].val} description |
considering // are spaces
3. Playing with spaces creates different renderings
Screenshots
Working Template :

Renders this :

Bugged Template :

Renders this :

Reproduction Link / Code example
Bugged Template :
buggedTemplate.odt
Working Template title almost centered above the images :
exampleTemplate.odt
Working Template title at the left of the images :
exampleTemplateNotCentered.odt
Used JSON
{
"legend": {
"Points d'évacuation": "linkToImage.png",
"Points de Collecte": "linkToImage.png",
"Pré traitements": "linkToImage.png",
"Traitements": "linkToImage.png"
},
"carte": "linkToImage.png"
}Other comments
Also add another bug which I cannot reproduce that made looping over an above image instead of the legend images. Available in the next PDF ( modified a bit to hide non public information which made images have a faded black bg somehow )
renderedTemplate.pdf