Skip to content
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

Gist Shows Without Tabs #74

Closed
joshuadavidnelson opened this issue Mar 30, 2017 · 7 comments
Closed

Gist Shows Without Tabs #74

joshuadavidnelson opened this issue Mar 30, 2017 · 7 comments

Comments

@joshuadavidnelson
Copy link

For some time now my embedded gists have shown up without the lines tabbed (so everything is left-aligned). I haven't modified any styling on my theme, but I have kept the plugin updated (currently at version 3.0.0).

You can view an example here versus in GitHub here.

@bradyvercher
Copy link
Owner

It looks like tab characters are being converted to spaces somewhere along the way. Do you have some code or a plugin that might be doing that? You'll likely need to update the post after deactivating any plugins to flush the cache.

@joshuadavidnelson
Copy link
Author

Hmmm... I shouldn't, but I'm guessing this is just me seeing this error. I'll dig into it later this evening on my local environment to see if there's a plugin conflict. Thanks!

@GaryJones
Copy link
Collaborator

CSS all looks fine - white-space:pre coming from Github's CSS etc.

@joshuadavidnelson
Copy link
Author

Weird - must be something on my setup conflicting with it. Thanks for the quick responses, guys - sorry if I wasted your time. I'll circle back if I find a bug/conflict.

@GaryJones
Copy link
Collaborator

@joshuadavidnelson Looking at the view-source: for your page, shows that your HTML is being minified. Maybe try turning this off temporarily, or adding an exclusion for the div.gist element.

@joshuadavidnelson
Copy link
Author

Thanks for the tip. I'm using WP Rocket. I turned off minification, bumped the gist shortcode, cleared the cache, opened incognito. Still see it. I'm guessing it's something on my end, though, not a bug with the plugin at this point. Thanks for the assistance!

@wpsmithtwc
Copy link

I did some testing and this is most likely due to HTML minification (or at least it was for me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants