Merge pull request #1962 from RobertSchouten/patch-44

Bugfix cropped email text
This commit is contained in:
Rushabh Mehta 2016-08-12 14:07:18 +05:30 committed by GitHub
commit a7e57a9d5e

View file

@ -45,7 +45,7 @@ frappe.markdown = function(txt) {
var whitespace_len = 0,
first_line = txt.split("\n")[0];
while([" ", "\n", "\t"].indexOf(first_line.substr(0,1))!== -1) {
while(["\n", "\t"].indexOf(first_line.substr(0,1))!== -1) {
whitespace_len++;
first_line = first_line.substr(1);
}