-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indentation doesn't work properly #16
Comments
Hi and thank you! Currently it behaves like Github Gist and a bit like Vim : when you press tab it indents with the current settings (size and type). That said the problem might come from somewhere else since your indentation in the first screen seems to be only one space ..? |
Yeah, I realized later that that option sets the tabs size during editting, which makes sense. I really liked your project and I'd love to contribute, so I tried looking into the frontend to see if I spot the error but I don't get shit about it. I'll try to help with the backend instead 😅 |
Are you using Opengist through a proxy or something that "optimize" html by removing spaces ? Also what browser are you using ? Seems to be front-related |
Those are very good questions and I'm not sure about that... I'm using Firefox (112.0.1) and I'm proxying using nginx with the following config:
|
In case someone else comes here with the same issue, @thomiceli's idea was spot on and I was able to fix it by disabling Cloudflare's HTML auto minify: |
I don't know if this is related with only one file format or more, I just started using the app (awesome job, btw! 🥰).
When I visualize my shell script, it shows up like this:
(I'm using the ".sh" extension and my indentation is set to 2 spaces. I even tried to update this information but it didn't "save" - I'll open another issue for that later)
But my file is actually formatted like this:
I tried to manually set indentation from 2 to 4 spaces, but it didn't change anything in the visualization.
The text was updated successfully, but these errors were encountered: