+ 2

SoloLearn Tabs Replacing Spaces

In any code that has many spaces, will be replaced by tabs when you go back to the code. This can mess up code, especially if it is within the “pre” element. When you make your code that has many spaces in a row and save it, it will look the way you typed it, but after closing the app and going back to the code, the spaces will be replaced by tabs. Example: <pre>text followed by 6 spaces text</pre> After closing the app and coming back: <pre>text followed by 6 spaces text</pre> How to prevent this?

17th Jul 2021, 5:36 PM
Katz321Juno
Katz321Juno - avatar
11 Answers
+ 14
Katz321Juno This looks good to me. I see spaces in the editor and in the preview. The preview looks aligned.
22nd Jul 2021, 3:29 PM
Igor Makarsky
Igor Makarsky - avatar
+ 13
Katz321Juno OK then. The only option is to contact the official support team, as I mentioned earlier.
23rd Jul 2021, 10:35 PM
Igor Makarsky
Igor Makarsky - avatar
+ 12
Katz321Juno Yes, it is.
22nd Jul 2021, 5:30 AM
Igor Makarsky
Igor Makarsky - avatar
+ 12
Katz321Juno Unfortunately, I can't reproduce the bug. It would be great if you could send this post, your app version, platform name and maybe a video to info@sololearn.com. I'm not sure if developers read Q&A discussions, but they do read emails 🙂
22nd Jul 2021, 3:09 PM
Igor Makarsky
Igor Makarsky - avatar
+ 12
Katz321Juno Looks messy. Are you using an iOS device? Are you sure that this is a SoloLearn's issue? To check this, you can upload your code to codesandbox.io and see if the issue is reproduced there using Chrome and Safari.
23rd Jul 2021, 5:38 AM
Igor Makarsky
Igor Makarsky - avatar
+ 10
Use this html entity instead of hitting an actual tab button: &#9; Example: <pre>this text is followed by 1&#9;tab</pre>
20th Jul 2021, 5:33 AM
Igor Makarsky
Igor Makarsky - avatar
22nd Jul 2021, 3:58 PM
Katz321Juno
Katz321Juno - avatar
+ 2
Igor Makarsky I think it is the app. I went to the url I first mentioned, but without the “?ref=app” in Safari, requested the desktop site, and I saw that it was as I originally wrote the code. The code and output were both aligned and spaced correctly.
23rd Jul 2021, 7:54 PM
Katz321Juno
Katz321Juno - avatar
+ 1
But I don’t use the tab button, it replaces spaces with tabs in the code. Is that entity a tab?
22nd Jul 2021, 3:00 AM
Katz321Juno
Katz321Juno - avatar
+ 1
Igor Makarsky ok. The only possible solution would be for the developers to modify the app’s code to stop it from automatically converting 4 spaces into tabs, or add a setting to do that.
22nd Jul 2021, 2:17 PM
Katz321Juno
Katz321Juno - avatar
0
Igor Makarsky I first noticed it here https://code.sololearn.com/WmM2QDyXXt4N/?ref=app They were all spaces apart to line up.
22nd Jul 2021, 3:11 PM
Katz321Juno
Katz321Juno - avatar