Fix saving the note of a card

Fixes #3849
This commit is contained in:
Francis Lachapelle committed 2016-10-20 18:28:58 -04:00
1 parent 03661eef9e
commit f326ca5ae5
8 files changed
+75 -45

No files matched your search

@@ -0,0 +1,21 @@
/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/**
* ln2br - A filter to convert line feeds and carriage returns to html line breaks
* @memberof SOGo.Common
*/
(function () {
'use strict';
/**
* @ngInject
*/
function ln2br() {
return function(text) {
return text ? String(text).replace(/\r?\n/gm, '<br>') : undefined;
};
}
angular.module('SOGo.Common')
.filter('ln2br', ln2br);
})();