Bug 473131

Summary: More than one spaces are ignored in text (git 287099d)
Product: [Applications] krita Reporter: Raghavendra kamath <raghu>
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: griffinvalley
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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