The theme developer spans have too much white space around them causing rendering problems, especially when adding custom themes that aren't fully CSS based.
This also causes some other items to fail on odd ways.
I have attached a patch which removes the extra unneeded white space, and I can't see any downsides to it.
| Comment | File | Size | Author |
|---|---|---|---|
| devel-whitespace.patch | 818 bytes | DeeHants |
Comments
Comment #1
moshe weitzman commentedthey are there for readability of the source. which browser interprets white space as meaningful? and even a single line break is problematic?
Comment #2
DeeHants commentedThey all treat white space as at least one rendered space.
This happened to be affecting the custom theme I was working on where it comma separated multiple items rather than relying on divs and CSS.
I'm not 100% sure what else it effected but it changed the styling as well using different/larger fonts, among other things.
Comment #3
moshe weitzman commentedComment #4
effulgentsia commentedUltimately, the goal is to not use spans at all: #425716: Use comments instead of spans to markup theme calls. But until then, you can now add
$conf['devel_themer_no_whitespace'] = TRUE;to your settings.php file to remove that whitespace.