MCPcopy Create free account
hub / github.com/Uncodin/bypass / parsedNormalText

Method parsedNormalText

src/parser.cpp:287–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 // Low Level Callbacks
286
287 void Parser::parsedNormalText(struct buf *ob, struct buf *text) {
288 // The parser will spuriously emit a text callback for an empty string
289 // that butts up against a span-level element. This will ignore it.
290
291 if (text && text->size > 0) {
292 Element normalText;
293 normalText.setType(TEXT);
294 normalText.text.assign(text->data, text->data + text->size);
295 createSpan(normalText, ob);
296 }
297 }
298
299}
300

Callers 1

rndr_normal_textFunction · 0.80

Calls 1

setTypeMethod · 0.80

Tested by

no test coverage detected