PDA

View Full Version : Bug Report: Formatted Text fields bold then copy creates spaces



jharp
June 2nd, 2024, 05:24
Hello,

Tested this on the latest version, new campaign, no extensions.

To reproduce:

1. Create two notes
2. In the first type 01234567890
3. Highlight 56
4. Convert to bold with ctrl-b (happens if you use mouse options too)
5. Select all text
6. Ctrl-c (or mouse options)
7. In the second ctrl-v (or mouse options)
8. You will see in the second one a space on either side of 56

Happens with underline/italics too.

This seems to be an issue with the handling of the api.setValue()

Jason

Zacchaeus
June 2nd, 2024, 08:58
This has been the case for as long as I've been using FG. For whatever reason the xml inserts a space after any bold, itallic etc. I'm sure John has explained why this happens but I can't find any posts about it now.

Moon Wizard
June 2nd, 2024, 18:49
Yes, it has to do with a conflict with the way that FG has historically stored formatted text data. I've thought about trying to change the data format under the hood to address; but the migration/risk of that change is not worth the minor annoyances. I'm sure this will be something that we tackle at some point, but it's not on our current priority list.

Regards,
JPG