drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

Indentations disappear when pasting text

Open alpha75lap opened this issue 4 years ago • 2 comments

Preflight Checklist

  • [ x ] I agree to follow the Code of Conduct that this project adheres to.
  • [ x ] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug When pasting text into a shape any indentation at the start of any paragraph within the same shape disappears. This does not happen when you tabulate the whole paragraph, unless is a 1 line paragraph or it has indentation as well.

To Reproduce Steps to reproduce the behavior:

  1. Go to shapes and create a rectangle (bug appears on every shape I've tested).
  2. Write a paragraph and add an indentation at the beginning of the first line.
  3. Copy a word (or any amount of characters) and paste it anywhere inside the same shape.
  4. Indentation disappears and has to be entered manually again.

Expected behavior Tabulations already at the beginning of paragraphs (indentations) are expected to persist regardless any addition of text by copy-pasting, specially if the text was added in a different line of text in the shape.

Screenshots indentation

draw.io version

  • draw.io version 15.8.4 (experienced this problem in every version I've tested)

Desktop

  • OS: W10

Additional context While taking the screenshots for this bug I encountered a second bug that so far I don't know how to replicate: (In the future I plan to post about that bug too, as soon as I know how to replicate it.) Notice I was trying to create a line with the following text "Here the pasted text: Copy pasted line of text" but couldn't put both phrases in the same line. Putting the text cursor in the beginning of the added line and pressing backspace results in the last character of the previous line to be deleted without merging the lines.

alpha75lap avatar Nov 24 '21 20:11 alpha75lap

Hi, any updates on this issue? I got the same issue at MacOS with all versions I have upgraded :(

stevesun21 avatar Aug 14 '22 08:08 stevesun21

What's the ETA on a fix for this?

davidjgraph avatar Aug 15 '22 08:08 davidjgraph

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Mar 25 '23 12:03 stale[bot]

In case anyone wanted to do this for pasting source code to visualize in drawio, here is a workaround:

  • replace all " " spaces in your code with another inivisible char:
    • E.g.: U+2007 Figure Space   " "
  • Now copy and paste, these characters are preserved

ltOgt avatar Sep 11 '23 13:09 ltOgt