WP-API / WP-API.github.io

http://wp-api.org/
24 stars 17 forks source link

Code samples with multiple indent levels don't display correctly in Chrome and Firefox #47

Open itsananderson opened 9 years ago

itsananderson commented 9 years ago

I just noticed this on the Extending page. The code samples near the end of the page with the MyPlugin_API_MyType class are indented incorrectly. Playing around with the styles briefly, it looks like the letter-spacing: -1px rule for .content pre > code is what's causing it. Interestingly enough, it seems to display fine in IE on Windows, and Safari on OS X.

image