Skip to content
Snippets Groups Projects
Commit 0f31f705 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

don't add (purely cosmetic) newline after HTML marker, fixes #2950

Closes #2950

Merge request studip/studip!1985
parent 5b8d54a6
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,7 @@ class Markup
if (self::hasHtmlMarker($text) || trim($text) === '') {
return $text; // marker already set, don't set twice
}
return self::HTML_MARKER . PHP_EOL . $text;
return self::HTML_MARKER . $text;
}
/**
......
......@@ -25,7 +25,7 @@ const wysiwyg = {
if (this.hasHtmlMarker(text) || text.trim() == '') {
return text; // marker already set, don't set twice
}
return this.htmlMarker + '\n' + text;
return this.htmlMarker + text;
},
getEditor,
......
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