Browse Source

Improved trimming draft

master
Igor Zhukov 8 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', [])
function parseMarkdown (text, entities, noTrim) { function parseMarkdown (text, entities, noTrim) {
if (text.indexOf('`') == -1 && text.indexOf('@') == -1) { if (text.indexOf('`') == -1 && text.indexOf('@') == -1) {
return text.trim() return noTrim ? text : text.trim()
} }
var raw = text var raw = text
var match var match

Loading…
Cancel
Save