Coder Social home page Coder Social logo

Comments (5)

jbonadiman avatar jbonadiman commented on June 5, 2024 1

Yeah, I realized later that that option sets the tabs size during editting, which makes sense.
But the visualization still looks a bit off. I used 4 spaces in the entire file, but specially inner indents look like got 1 space. And when I edit the file I see the 4 spaces again, so the information is still there.

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 😅

from opengist.

Maronato avatar Maronato commented on June 5, 2024 1

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:

Screenshot 2023-09-04 at 22 25 33

from opengist.

thomiceli avatar thomiceli commented on June 5, 2024

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).
Only the tabs size change dynamically when you change the settings, that's pretty fair for me (atm) because it could be tricky to convert space and tabs.

That said the problem might come from somewhere else since your indentation in the first screen seems to be only one space ..?

from opengist.

thomiceli avatar thomiceli commented on June 5, 2024

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

from opengist.

jbonadiman avatar jbonadiman commented on June 5, 2024

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:

server {
    listen                 443 ssl;
    server_name            <domain>;

    client_max_body_size   10M;

    ssl_certificate <path>;
    ssl_certificate_key <path>;

    location / {
        proxy_set_header        Host $host;
        proxy_set_header        X-Real-IP $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header        X-Forwarded-Proto $scheme;

        proxy_pass              http://localhost:6157/;

        proxy_read_timeout      600s;
        proxy_send_timeout      600s;
    }
}

from opengist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.