Bug 473131 - More than one spaces are ignored in text (git 287099d)
Summary: More than one spaces are ignored in text (git 287099d)
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-08 04:07 UTC by Raghavendra kamath
Modified: 2023-08-09 12:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2023-08-08 04:07:38 UTC
SUMMARY
While adding text block multiple spaces are compressed  into one space. 

STEPS TO REPRODUCE
1. Download latest nightly build and create a new document
2. Add a text block and add more than one space in the text

OBSERVED RESULT
Multiple spaces are compressed into one

EXPECTED RESULT
Spaces in text should be kept intact
Comment 1 wolthera 2023-08-09 12:22:16 UTC
Hey,

I think I already mentioned on IRC that this behaviour is correct for the default behaviour of "white-space:normal", and is only possible for "white-space:pre", "white-space:pre-line" and "white-space:pre-wrap".

https://developer.mozilla.org/en-US/docs/Web/CSS/white-space
Comment 2 Raghavendra kamath 2023-08-09 12:56:12 UTC
Hi Wolthera,

Yes I had already filed this report before asking. So sorry. We can close this