Skip to content

Commit d452ccb

Browse files
Trim strings before compare
1 parent 6fa6e2a commit d452ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ angular.module('gettext').directive('translate', function (gettextCatalog, $pars
6060
var oldContents = element.contents();
6161

6262
// Avoid redundant swaps
63-
if (translated === oldContents.html()){
63+
if (translated === trim(oldContents.html())){
6464
// Take care of unlinked content
6565
if (linking){
6666
$compile(oldContents)(scope);

0 commit comments

Comments
 (0)