aboutsummaryrefslogtreecommitdiffstats
path: root/src/markups.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/markups.js')
-rw-r--r--src/markups.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/markups.js b/src/markups.js
index 4207d83f..e9c03217 100644
--- a/src/markups.js
+++ b/src/markups.js
@@ -43,6 +43,12 @@ angularTextMarkup('{{}}', function(text, textNode, parentElement) {
} else {
newElement = self.text(text);
}
+ if (msie && text.charAt(0) == ' ') {
+ newElement = jqLite('<span>&nbsp;</span>');
+ var nbsp = newElement.html();
+ newElement.text(text.substr(1));
+ newElement.html(nbsp + newElement.html());
+ }
cursor.after(newElement);
cursor = newElement;
});