Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/icewind1991/files_markdown.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-01-23 13:01:13 +0300
committerRobin Appelman <robin@icewind.nl>2017-01-23 13:01:13 +0300
commita64fa41f3b613bbd66aae32f9513b907d8341af2 (patch)
tree7e021f2d44b017bfd0f9233eb23343502d1938cb /js
parente9e1be44111b3e1f09cc8858f86e017c23741b8c (diff)
dont trim the input text
fixes #35 Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'js')
-rw-r--r--js/editor.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/js/editor.js b/js/editor.js
index 2f36a09..cd88fce 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -78,7 +78,6 @@ OCA.Files_Markdown.Preview.prototype.previewText = function (text, element) {
};
var prepareText = function (text) {
- text = text.trim();
if (text.substr(0, 3) === '+++') {
text = text.substr(3);
text = text.substr(text.indexOf('+++') + 3);