| 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 |
no test coverage detected