Title: [Plugin: Embed GitHub Gist] bad (spaced out) formatting?
Last modified: August 20, 2016

---

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

 *  [Mr5o1](https://wordpress.org/support/users/mr5o1/)
 * (@mr5o1)
 * [14 years ago](https://wordpress.org/support/topic/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](http://i.imgur.com/EpgfI.png)
 * is it supposed to look like that?
 * Thanks,
 * [http://wordpress.org/extend/plugins/embed-github-gist/](http://wordpress.org/extend/plugins/embed-github-gist/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [dflydev](https://wordpress.org/support/users/dflydev/)
 * (@dflydev)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-bad-spaced-out-formatting/#post-2732968)
 * 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?
 *  [cassiel](https://wordpress.org/support/users/cassiel/)
 * (@cassiel)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-bad-spaced-out-formatting/#post-2732972)
 * 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](http://twitpic.com/bleavg)
 *  [theantichris](https://wordpress.org/support/users/theantichris/)
 * (@theantichris)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-bad-spaced-out-formatting/#post-2732975)
 * I’m having the same issue.
 *  Plugin Author [dflydev](https://wordpress.org/support/users/dflydev/)
 * (@dflydev)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-bad-spaced-out-formatting/#post-2732976)
 * 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.
 *  [iamsk](https://wordpress.org/support/users/iamsk/)
 * (@iamsk)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-bad-spaced-out-formatting/#post-2732978)
 * Big issue with 3.5, please check.
 *  [iamsk](https://wordpress.org/support/users/iamsk/)
 * (@iamsk)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-bad-spaced-out-formatting/#post-2732979)
 * My mistake, I change my shortcode by using javascript embedded code. And it works
   fine! Thanks!
 *  [cassiel](https://wordpress.org/support/users/cassiel/)
 * (@cassiel)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-bad-spaced-out-formatting/#post-2732980)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/embed-github-gist.svg)
 * [Embed GitHub Gist](https://wordpress.org/plugins/embed-github-gist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/embed-github-gist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/embed-github-gist/)
 * [Active Topics](https://wordpress.org/support/plugin/embed-github-gist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/embed-github-gist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/embed-github-gist/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [cassiel](https://wordpress.org/support/users/cassiel/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-bad-spaced-out-formatting/#post-2732980)
 * Status: not resolved