Update src/node/utils/ExportHtml.js

Added a hook for utils/ExportHtml.js
This commit is contained in:
gedion 2012-08-11 13:08:28 -05:00
parent df7d7769c8
commit 4d11e49878
1 changed files with 14 additions and 14 deletions

View File

@ -402,20 +402,20 @@ function getHTMLFromAtext(pad, atext)
}
lists.length--;
}
var newLineContent = hooks.callAllStr("getLineHTMLForExport",
{
line: line,
apool: apool,
attribLine: attribLines[i],
text: textLines[i]
}, " ", " ", "");
if (newLineContent)
{
pieces.push(newLineContent, '');
} else
{
pieces.push(lineContent, '<br>');
}
var lineContentFromHook = hooks.callAllStr("getLineHTMLForExport",
{
line: line,
apool: apool,
attribLine: attribLines[i],
text: textLines[i]
}, " ", " ", "");
if (lineContentFromHook)
{
pieces.push(lineContentFromHook, '');
} else
{
pieces.push(lineContent, '<br>');
}
}
}