extra linebreak appearing on php output
-
All of a sudden, extra linebreaks
<br />are appearing between<label></label>and<input></input>or<option></option>tags throughout the site. This is appearing in pages generated by Theme My Login and WP Courseware.The php file looks like:
<p class="tml-user-email-wrap"> <label for="user_email<?php $template->the_instance(); ?>"><?php _e( 'E-mail', 'theme-my-login' ); ?></label> <input type="text" name="user_email" id="user_email<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_email' ); ?>" size="20" /> </p>But the browser renders this out as:
<p class="tml-user-email-wrap"> <label for="user_email">E-mail</label><br /> <input type="text" name="user_email" id="user_email" class="input" value="" size="20" /> </p>This was not the behaviour previously. I removed all customizations from
register-form.phpandtheme-my-login-custom.phpto test.I was able to remove the
<br>from generating if I removed all whitespace between the end of label and the beginning of input or option:</label><input>The page I need help with: [log in to see the link]
The topic ‘extra linebreak appearing on php output’ is closed to new replies.