Browse Source

Improved trimming draft

master
Igor Zhukov 9 years ago
parent
commit
3f304448cb
  1. 2
      app/js/lib/ng_utils.js

2
app/js/lib/ng_utils.js

@ -1401,7 +1401,7 @@ angular.module('izhukov.utils', []) @@ -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…
Cancel
Save