From 01e3f2b3a8ed1c28c36be403fa336bea5684cde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= <mic.grosse@posteo.de> Date: Wed, 20 Apr 2016 18:24:46 +0200 Subject: [PATCH] Remove unnecessary linebreaks from new Form Since Firebug it is no longer necessary to structure html with linebreaks. See also Issue #924 --- inc/Form/Form.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/Form/Form.php b/inc/Form/Form.php index 6f83e9014..8d741ceb1 100644 --- a/inc/Form/Form.php +++ b/inc/Form/Form.php @@ -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; } -- GitLab