[wp-trac] [WordPress Trac] #22230: WP adds <br /> before <select even where there is no line break in source code
WordPress Trac
noreply at wordpress.org
Wed Oct 24 04:56:08 UTC 2012
#22230: WP adds <br /> before <select even where there is no line break in source
code
--------------------------+------------------------------
Reporter: chirael | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 3.4.2
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by chirael):
While I still consider this a bug, a workaround which seems to work for me
is to use styles to select the br element and then set its display to
none:
{{{
<li class="nobr"><label for="sellby">How soon do you need to
sell?</label><select id="sellby"
}}}
and then in the theme's style.css:
{{{
li.nobr br { display: none; }
}}}
Just wanted to post this hack in case anyone else is vexed by this WP
behavior; credit to [http://wordpress.org/support/topic/unwanted-line-
break-inserted-after-a-label-tag this page] for the idea.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22230#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list