diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js index 0a63290a1..d8f8b8340 100644 --- a/src/static/js/contentcollector.js +++ b/src/static/js/contentcollector.js @@ -393,7 +393,14 @@ const makeContentCollector = function ( const tname = (dom.nodeTagName(node) || '').toLowerCase(); const styl = dom.nodeAttr(node, 'style'); const cls = dom.nodeAttr(node, 'class'); - console.warn(tname); + + // clear to avoid pollution of trailing blank lines after lines with attributes + // during import + if (state.lineAttributes) { + delete state.lineAttributes; + state.lineAttributes = {}; + } + if (tname === 'img') { // no hook sare called in this branch, just a demo.. hooks.callAll('collectContentImage', {