Skip to content

[Bug Report]: Object repetition issues with LibreOffice ( .odt files ) #220

@florianRnPVision

Description

@florianRnPVision

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:

  1. Create a new LibreOffice Writer file
  2. 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 :
image
Renders this :
image


Bugged Template :
image
Renders this :
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T: bugFunctionality that does not work as intended/expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions