Fixing ed52626. It was closing the span with </span data-TAG=VALUE>, not </span>

This commit is contained in:
Luiza Pagliari 2015-09-17 15:30:09 -03:00
parent ed5262650a
commit 1d134f0b13
2 changed files with 8 additions and 2 deletions

View file

@ -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('</');