Improved trimming draft
This commit is contained in:
parent
63d4cfe5ba
commit
3f304448cb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user