Expand my Community achievements bar.

SOLVED

hard space is being added when space bar is pressed

Avatar

Level 1

TheHafiz_0-1738858173946.png

 

Seems like in certain instances Experience Manager Author is adding a hard space (&nbsp). When it adds it between two words or multiple words, its connecting the words and making it a word long with the hard space   in the middle. Its causing ADA issues with zoom.

Anyone know how to disable this?

It can be seen in Developer Tool > Edit as HTML
Example: "The Cat In Hat"

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 5

try using MS Word for the same scenario as I think in the notepad/vscode(can be due to some encoding) it already comes up as hard space and copying and pasting just promotes to AEM author as well as when I couldn't replicate the issue with the same steps mentioned by you.

View solution in original post

4 Replies

Avatar

Level 5

Hi @TheHafiz 

 

Can you share how are you authoring it? are you copying from somewhere and pasting it or directly pressing the spacebar?

as it seems to be retaining the copied content text and from there it generates hard space.

Avatar

Level 1

Hi, thank you for your reply. It happens when I copy the text from notepad or even visual code. I think it happens more so when I make any update inside Author and hit space. In most cases that will add the space. I think its little bit less when I copy from notepad or visual code and paste it. I did not try to copy and paste from MS Word.

Thanks again.

Avatar

Correct answer by
Level 5

try using MS Word for the same scenario as I think in the notepad/vscode(can be due to some encoding) it already comes up as hard space and copying and pasting just promotes to AEM author as well as when I couldn't replicate the issue with the same steps mentioned by you.

Avatar

Administrator

@TheHafiz Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!



Kautuk Sahni