MCPcopy Create free account
hub / github.com/TruthHun/BookStack / beginWhiteSpace

Function beginWhiteSpace

static/word2md/mammoth.browser.js:26885–26896  ·  view source on GitHub ↗
(parser, c)

Source from the content-addressed store, hash-verified

26883 }
26884
26885 function beginWhiteSpace (parser, c) {
26886 if (c === '<') {
26887 parser.state = S.OPEN_WAKA
26888 parser.startTagPosition = parser.position
26889 } else if (not(whitespace, c)) {
26890 // have to process this as a text node.
26891 // weird, but happens.
26892 strictFail(parser, 'Non-whitespace before first tag.')
26893 parser.textNode = c
26894 parser.state = S.TEXT
26895 }
26896 }
26897
26898 function charAt (chunk, i) {
26899 var result = ''

Callers 1

writeFunction · 0.70

Calls 2

notFunction · 0.70
strictFailFunction · 0.70

Tested by

no test coverage detected