summaryrefslogtreecommitdiff
path: root/src/plugins/html/DemoOutput.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-10 14:31:46 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:24:13 +0200
commit579b0e14d3bc1345512cac00a83159569cfcfa00 (patch)
tree6254767a8913487821dc3f893119d5f29cfd55c2 /src/plugins/html/DemoOutput.cpp
parente56144c7eca8b56045c769f17e157db86f47b1b1 (diff)
Use "emph" instead of "emphasized" for the demo html output, adapt unit tests accordingly
Diffstat (limited to 'src/plugins/html/DemoOutput.cpp')
-rw-r--r--src/plugins/html/DemoOutput.cpp6
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
+}