Skip to content

Commit

Permalink
fix(nssi[nerve]): skip teiheader when sending document to nssi[nerve]
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaju committed Oct 8, 2020
1 parent db55e0a commit f797df5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/layout/modules/nerve/nerve.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ function Nerve(config) {

const doBuild = (currentNode) => {
const tags = _nodeToStringArray(currentNode);

if (tags[0] === '<teiHeader>') return; // * skip `<teiheader>` when sending document to NSSI [NERVE]

xmlString += tags[0];
currentNode.contents().each((index, el) => {
if (el.nodeType == Node.ELEMENT_NODE) {
Expand Down

0 comments on commit f797df5

Please sign in to comment.