I have a simple search form I wish to implement using Jade.
form
input(
type="text"
size="16"
placeholder="Enter your keywords")
input(
type="button"
value="Search")
The output is rendered as:
<form>
<input type="text" size="16" placeholder="Enter your keywords">
<input type="button" value="Search">
</form>
This is perfect except that the line-break is causing a space between my button and the search button. I need no space between the textbox and the button. I need the code to render like this:
<form>
<input type="text" size="16" placeholder="Enter your keywords"><input type="button" value="Search">
</form>
However I am using this project to create code that will need to be read in its HTML form, and can't simple remove white space from my project as a whole.
Is there a way I could output my form as indicated whilst retaining white spacing and line-breaking in the rest of my document?
blockquote
anda
, as in your example here, but Jade v1.11.0 produces errors and will not compile when trying this withinput
tags. FWIW, the fusesource.org link above is not working. The doc is also available here. – Gunfire