Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
florianRnPVision opened this issue Nov 26, 2024 · 0 comments
Labels
T: bug Functionality that does not work as intended/expected

Comments

@florianRnPVision
Copy link

florianRnPVision commented Nov 26, 2024

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

@florianRnPVision florianRnPVision added the T: bug Functionality that does not work as intended/expected label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

1 participant