diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/html/DemoOutput.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/html/DemoOutput.cpp b/src/plugins/html/DemoOutput.cpp index 8cf4e13..42c4080 100644 --- a/src/plugins/html/DemoOutput.cpp +++ b/src/plugins/html/DemoOutput.cpp @@ -32,7 +32,7 @@ typedef std::stack<Rooted<AnnotationEntity>> AnnoStack; static bool canHandleAnchor(Handle<Anchor> a) { std::string annoClassName = a->getAnnotation()->getDescriptor()->getName(); - return annoClassName == "emphasized" || annoClassName == "strong"; + return annoClassName == "emph" || annoClassName == "strong"; } static Rooted<xml::Element> openAnnotation(Manager &mgr, AnnoStack &opened, @@ -48,7 +48,7 @@ static Rooted<xml::Element> openAnnotation(Manager &mgr, AnnoStack &opened, // get the elment name std::string elemName = entity->getDescriptor()->getName(); // emphasized has to be shortened - if (elemName == "emphasized") { + if (elemName == "emph") { elemName = "em"; } // create the new XML element representing the annotation @@ -396,4 +396,4 @@ void DemoHTMLTransformer::writeHTML(Handle<Document> doc, std::ostream &out, html->serialize(out, "<!DOCTYPE html>", pretty); } } -}
\ No newline at end of file +} |