Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.3

Request #9382 Don't add class="" if no css style given
Submitted: 2006-11-19 11:08 UTC
From: cweiske Assigned:
Status: Open Package: Text_Wiki (version 1.1.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2006-11-19 11:08 UTC] cweiske (Christian Weiske)
Description: ------------ Text_Wiki_Render_Xhtml_Anchor always adds an empty class="" attribute even if no css class is given. That bloats code unnecessarily.

Comments

 [2006-11-25 19:38 UTC] cweiske (Christian Weiske)
Patch that fixes this for Url, Anchor and WikiLink Index: Text/Wiki/Render/Xhtml/Anchor.php =================================================================== RCS file: /repository/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Anchor.php,v retrieving revision 1.10 diff -r1.10 Anchor.php 37a38,40 > if ($css == ' class=""') { > $css = ''; > } Index: Text/Wiki/Render/Xhtml/Url.php =================================================================== RCS file: /repository/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Url.php,v retrieving revision 1.15 diff -r1.15 Url.php 75a76,78 > if ($css == ' class=""') { > $css = ''; > } 94a98,100 > if ($css == ' class=""') { > $css = ''; > } Index: Text/Wiki/Render/Xhtml/Wikilink.php =================================================================== RCS file: /repository/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Wikilink.php,v retrieving revision 1.21 diff -r1.21 Wikilink.php 105a106,108 > if ($css == ' class=""') { > $css = ''; > } 139a143,145 > if ($css == ' class=""') { > $css = ''; > }