01485: Divs and WikiStyles - Strange spaces in html (div and span) class
Description:
Something adds spaces (visible in the html-page source) that cause me troubles to a custom markup (toggle class).
Confirmed by a test in sandbox.
Markup:
>>xyz<<
...
>><<
Result:<div class=' xyz' >
Markup:
%xyz%...%%
Result:<span class=' xyz'>...</span>
-- Frank
Is this a change in a recent version? Which version last worked without leading space? --Petko
I'm sorry, I can't tell, it's been a while (a year?) since I used that snipplet with wikistyles.
However, if spaces for some reason have to remain, I've found a quick way to make the togggle-snipplet work with them. -- Frank
Thanks for your report! The "class" attribute was moved outside a loop in 2.3.15 and I hadn't noticed it was missing a trim() operation. Fixed for 2.3.17 - you can get the modified scripts/wikistyles.php from a partial export at ChangeLog. --Petko
Thanks, everything works now. -- Frank