+ 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?
11 Réponses
+ 14
Katz321Juno This looks good to me.
I see spaces in the editor and in the preview. The preview looks aligned.
+ 13
Katz321Juno OK then. The only option is to contact the official support team, as I mentioned earlier.
+ 12
Katz321Juno Yes, it is.
+ 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 🙂
+ 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.
+ 10
Use this html entity instead of hitting an actual tab button:
	
Example:
<pre>this text is followed by 1	tab</pre>
+ 2
Igor Makarsky https://code.sololearn.com/WcPPfew7s09X/?ref=app this is what I see.
+ 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.
+ 1
But I don’t use the tab button, it replaces spaces with tabs in the code. Is that entity a tab?
+ 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.
0
Igor Makarsky I first noticed it here https://code.sololearn.com/WmM2QDyXXt4N/?ref=app
They were all spaces apart to line up.