WordPress.org

Support

Support » Plugins and Hacks » Embed GitHub Gist » [Plugin: Embed GitHub Gist] bad (spaced out) formatting?

[Plugin: Embed GitHub Gist] bad (spaced out) formatting?

  • Hey.. thanks for the great plugin. I’ve been playing around with it today, but my gist’s are imported with formatting (and HTML markup) that just doesn’t seem quite right.

    For example the following 6 line gist:

    var template = [
        'ul.listClass#listId', [
            'li[text=Hello]',
            'li[text=World]'
        ]
    ];

    Is marked up like so:

    <div class='line' id='LC1'><span class="kd">var</span> <span class="nx">template</span> <span class="o">=</span> <span class="p">[</span></div>
    <div class='line' id='LC2'>&nbsp;&nbsp;&nbsp;&nbsp;<span class="s1">'ul.listClass#listId'</span><span class="p">,</span> <span class="p">[</span></div>
    <div class='line' id='LC3'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="s1">'li[text=Hello]'</span><span class="p">,</span></div>
    <div class='line' id='LC4'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="s1">'li[text=World]'</span></div>
    <div class='line' id='LC5'>&nbsp;&nbsp;&nbsp;&nbsp;<span class="p">]</span></div>
    <div class='line' id='LC6'><span class="p">];</span></div>

    just seems like a lot of element’s for not much code.. however, the real problem is that it’s rendered with double lines.. like so:
    http://i.imgur.com/EpgfI.png

    is it supposed to look like that?

    Thanks,

    http://wordpress.org/extend/plugins/embed-github-gist/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author dflydev

    @dflydev

    I apologize for the late response. I don’t control the HTML or the stylesheets that actually come from GitHub. I’ve seen some cases in the past where the HTML looks wonky but I think it was just a bad push from GitHub and it cleared itself up over time. Have you noticed this has gotten better or is it still looking wonky?

    Seems broken in WordPress 3.5: double-spaced lines. The line numbers suggest it’s a problem in the Gist generation itself.

    http://twitpic.com/bleavg

    I’m having the same issue.

    Plugin Author dflydev

    @dflydev

    I’m not sure how much more I can do at this point. I have the plugin no longer including rendered HTML. You will only ever get plain

    code or you will be seeing exactly what GitHub is sending in its embed code.

    Big issue with 3.5, please check.

    My mistake, I change my shortcode by using javascript embedded code. And it works fine! Thanks!

    Re: the double-spacing: clutching at straws here, but is there a chance that gists created on the Mac are being presented CRLF line breaks? I should test this on my staging site…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Embed GitHub Gist] bad (spaced out) formatting?’ is closed to new replies.
Skip to toolbar