Camunda-modeler: Pasted Empty Lines Are Duplicated

Created on 7 Jul 2021  路  7Comments  路  Source: camunda/camunda-modeler

__Describe the Bug__

Pasting an empty line when editing a label results in two empty lines upon rendering. Even though direct editing and the properties panel use the same fix empty lines are duplicated upon rendering a label.

d2JyZCUUK2

__Steps to Reproduce__

  1. Copy this text
Foo

Bar
Baz
  1. Paste it into the direct editing box when editing a label
  2. Complete direct editing
  3. Rendered text is now
Foo


Bar
Baz

__Expected Behavior__


Empty lines are neither lost nor duplicated.

__Environment__

  • OS: Windows 10
  • Camunda Modeler Version: 4.9.0-rc.4
backlog bug modeling spring cleaning

All 7 comments

@barmac @MaxTru @nikku Can you check if this is an issue on Linux and Mac as well?

I can confirm this is an issue on linux (Arch Linux) as well.

I can reproduce it on MacOS 11.4.

It's the same in Camunda Modeler 4.8.1

Okay, thank you for confirming. It's noteworthy that this issue doesn't occur if you write the same text manually instead of pasting it. I've checked the hidden characters in both cases and they appear to be exactly the same:

Hello[End of Line(LF)]
[End of Line(LF)]
World

馃

It's the same in Camunda Modeler 4.8.1

Okay, so this issue is not related to https://github.com/camunda/camunda-modeler/issues/2280. Thanks, @barmac, with v4.8.1 on Windows I wasn't able to test this as empty lines were lost on paste.

Just an instance of a new bug emerging, as the first one is fixed. I'm sure this is going to be the last newline bug :muscle: :see_no_evil:

Was this page helpful?
0 / 5 - 0 ratings