summaryrefslogtreecommitdiff
path: root/src/node/utils
diff options
context:
space:
mode:
authorLuiza Pagliari <lpagliar@gmail.com>2015-09-17 15:30:09 -0300
committerLuiza Pagliari <lpagliar@gmail.com>2015-09-17 15:30:09 -0300
commit1d134f0b138ca23f548a2795e0c68bbc6ea17437 (patch)
tree5982c37d793a9931c9f70e300de1a38455fde911 /src/node/utils
parented5262650af5feeb20bab2fa6173a0fe84821492 (diff)
downloadetherpad-lite-1d134f0b138ca23f548a2795e0c68bbc6ea17437.zip
Fixing ed52626. It was closing the span with </span data-TAG=VALUE>, not </span>
Diffstat (limited to 'src/node/utils')
-rw-r--r--src/node/utils/ExportHtml.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js
index ccdc3a59..53469c9b 100644
--- a/src/node/utils/ExportHtml.js
+++ b/src/node/utils/ExportHtml.js
@@ -183,6 +183,11 @@ function getHTMLFromAtext(pad, atext, authorColors)
return false;
}
+ function isSpanWithData(i){
+ var property = props[i];
+ return _.isArray(property);
+ }
+
function emitOpenTag(i)
{
openTags.unshift(i);
@@ -204,8 +209,9 @@ function getHTMLFromAtext(pad, atext, authorColors)
{
openTags.shift();
var spanClass = getSpanClassFor(i);
+ var spanWithData = isSpanWithData(i);
- if(spanClass){
+ if(spanClass || spanWithData){
assem.append('</span>');
} else {
assem.append('</');