Support » Plugin: Embed GitHub Gist » Indentation not working

Viewing 5 replies - 1 through 5 (of 5 total)
  • Apologies – I can confirm this is a CSS rule causing this bug on my site. Will try to narrow it down and post a fix if anyone has the same issue maybe it will help.

    /withdrawn

    Ulrich

    (@grapplerulrich)

    WordPress Contributor

    It has something to do with

    pre {
        white-space: pre-wrap;
    }

    The problem is that if the gist loads with the css like above then it shows the indent and then you could change to…

    pre {
        white-space: nowrap;
    }

    …but if you have the nowrap before the gist loads you have the code not wrapping but no indention. I am not sure where the problem lies.

    I’ve run into this same issue. I tried changing the CSS pre tag definition to no avail.
    Were you able to find the CSS issue?

    I commented a few lines out of my theme’s stylesheet as follows:

    pre {
    padding: 10px;
    /*white-space: pre;
    white-space: pre-wrap;
    white-space: pre-line;*/
    word-wrap: break-word;
    }

    Got one similar issue though – the line number margin varies in width according to the content of the code. Any ideas?

    See: http://bennuttall.com/comprehension-in-python/

    Ulrich

    (@grapplerulrich)

    WordPress Contributor

    I came across this today. I have not been able to test it yet.

    CSS tab-size

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Indentation not working’ is closed to new replies.