Skip to content
Snippets Groups Projects
Commit a70bf117 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #1547 from splitbrain/removeFormWhitespace

Remove unnecessary linebreaks from new Form
parents fcaef043 01e3f2b3
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