twitter/bootstrap — Issue #1926: Newline changes form element spacing
Author: pikeas
Created: 2012-02-12 14:34:44+00:00
State: open

I just lost the remainder of my sanity tracking down the following bug.

Please compare the output for these two HTML snippets (minimal test case): http://jsfiddle.net/4mHnt/, http://jsfiddle.net/BuC9q/.

The only difference is the newline and indentation between the input element and the a element. When there is whitespace between the elements, the elements lose their spacing.

This results in incorrect output when using most tools which generate HTML, as they typically do not produce indented code.