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]: drop(p) on list items not deleting the content #198

Open
Cecelia-N opened this issue Jan 3, 2024 · 1 comment
Open

[Bug Report]: drop(p) on list items not deleting the content #198

Cecelia-N opened this issue Jan 3, 2024 · 1 comment
Labels
T: bug Functionality that does not work as intended/expected

Comments

@Cecelia-N
Copy link

Cecelia-N commented Jan 3, 2024

Environment
Carbone Version: Carbone 4.x.x
Browsers: Edge
Desktop OS: MacOS
Other: LibreOffice: 7.6.4.1, .odt template

Expected Behaviour
When using drop(p) on a list element, that list item as well as the associated number is deleted

Actual Behaviour
the content remains the same

Steps to reproduce
If you create a list like this in LibreOffice (.odt)

  1. One
  2. {d.hasPets:ifEQ(false):drop(p)}Two
  3. three

The result in the studio will look like this (hasPets=false)

  1. One
  2. Two
  3. three

Other comments
I have tried working around this by using showBegin/showEnd, but it just breaks if the paragraphs above or below it are also conditionally displayed.

@Cecelia-N Cecelia-N added the T: bug Functionality that does not work as intended/expected label Jan 3, 2024
@Cecelia-N Cecelia-N changed the title [Bug Report]: drop(p) on list items not deleting the number as well as the content [Bug Report]: drop(p) on list items not deleting the content Jan 3, 2024
@JujuEasilys
Copy link

Hello Cecelia

Did you try to put the code after the Two, with a space between Two and the { ?
I do like this and it usualy works well

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

2 participants