Improved trimming draft

This commit is contained in:
Igor Zhukov 2016-07-11 21:22:07 +03:00
parent 63d4cfe5ba
commit 3f304448cb

View File

@ -1401,7 +1401,7 @@ angular.module('izhukov.utils', [])
function parseMarkdown (text, entities, noTrim) {
if (text.indexOf('`') == -1 && text.indexOf('@') == -1) {
return text.trim()
return noTrim ? text : text.trim()
}
var raw = text
var match