Skip to content
Snippets Groups Projects
Commit 01e3f2b3 authored by Michael Große's avatar Michael Große
Browse files

Remove unnecessary linebreaks from new Form

Since Firebug it is no longer necessary to structure html with linebreaks. See also Issue #924
parent f449b8c9
No related branches found
No related tags found
No related merge requests found
......@@ -422,17 +422,17 @@ class Form extends Element {
public function toHTML() {
$this->balanceFieldsets();
$html = '<form ' . buildAttributes($this->attrs()) . '>' . DOKU_LF;
$html = '<form ' . buildAttributes($this->attrs()) . '>';
foreach($this->hidden as $name => $value) {
$html .= '<input type="hidden" name="' . $name . '" value="' . formText($value) . '" />' . DOKU_LF;
$html .= '<input type="hidden" name="' . $name . '" value="' . formText($value) . '" />';
}
foreach($this->elements as $element) {
$html .= $element->toHTML() . DOKU_LF;
$html .= $element->toHTML();
}
$html .= '</form>' . DOKU_LF;
$html .= '</form>';
return $html;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment