diff -r e034099276f6 -r 9859c4bae904 src/widgets/Annotation.js --- a/src/widgets/Annotation.js Thu Nov 29 17:11:23 2012 +0100 +++ b/src/widgets/Annotation.js Fri Nov 30 10:49:26 2012 +0100 @@ -81,7 +81,7 @@ var rgxp = _this.source.getAnnotations().regexp || /^$/, repl = '$1'; title = title.replace(rgxp,repl); - description = description.replace(rgxp,repl); + description = description.replace(rgxp,repl).replace(/[\n\r]+/gm,'
'); } _this.$.find(".Ldt-Annotation-Title").html(title || "(" + _this.l10n.untitled + ")"); if (description) { @@ -100,6 +100,7 @@ _text = _this.l10n.watching + _annotation.title + (_this.site_name ? _this.l10n.on_site + _this.site_name : ''), _tags = _annotation.getTags(), _tagblock = _this.$.find(".Ldt-Annotation-Tags"); + _tagblock.empty(); if (_tags.length) { _this.$.find(".Ldt-Annotation-Tags-Block").removeClass("Ldt-Annotation-EmptyBlock"); _tags.forEach(function(_tag) {