From 579b0e14d3bc1345512cac00a83159569cfcfa00 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 10 Apr 2015 14:31:46 +0200 Subject: Use "emph" instead of "emphasized" for the demo html output, adapt unit tests accordingly --- src/plugins/html/DemoOutput.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins') 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> AnnoStack; static bool canHandleAnchor(Handle a) { std::string annoClassName = a->getAnnotation()->getDescriptor()->getName(); - return annoClassName == "emphasized" || annoClassName == "strong"; + return annoClassName == "emph" || annoClassName == "strong"; } static Rooted openAnnotation(Manager &mgr, AnnoStack &opened, @@ -48,7 +48,7 @@ static Rooted 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 doc, std::ostream &out, html->serialize(out, "", pretty); } } -} \ No newline at end of file +} -- cgit v1.2.3