From b876e2dfe087fc54bcde3d10f515cbfcbcae74e2 Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 14 Jan 2021 16:55:04 +0000 Subject: [PATCH] working? --- src/static/js/contentcollector.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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', {