diff options
Diffstat (limited to 'src/plugins/html/DemoOutput.cpp')
-rw-r--r-- | src/plugins/html/DemoOutput.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/html/DemoOutput.cpp b/src/plugins/html/DemoOutput.cpp index 307d37a..c858695 100644 --- a/src/plugins/html/DemoOutput.cpp +++ b/src/plugins/html/DemoOutput.cpp @@ -183,6 +183,10 @@ Rooted<xml::Element> DemoHTMLTransformer::transformParagraph( // transform paragraph children to XML as well for (auto &n : par->getField()) { + if (n->isa(typeOf<model::AnnotationEntity::Anchor>())) { + // TODO: Handle Anchors! + continue; + } std::string childDescriptorName = n->getDescriptor()->getName(); if (childDescriptorName == "text") { Handle<model::DocumentPrimitive> primitive = @@ -193,7 +197,6 @@ Rooted<xml::Element> DemoHTMLTransformer::transformParagraph( p->children.push_back( new xml::Text(mgr, primitive->getContent().asString())); } - // TODO: Handle non-text content } return p; } |