Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #3849
- Loading branch information
Showing
8 changed files
with
76 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters