diff --git a/inc/Form/Form.php b/inc/Form/Form.php
index 6f83e9014f6d762bc2e577b30fb4a6cc72b1c60a..8d741ceb16caf3c73c5b83626de4750fdade4c01 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;
     }