Skip to content
Snippets Groups Projects
Commit c8d4d46d authored by srosse's avatar srosse
Browse files

Merge OpenOLAT 12.4 to OpenOLAT default branch with bb7ab7bfe6ff8f0725ed1ef7d56e412012034062

parents bef4d82b 928fbed3
No related branches found
No related tags found
No related merge requests found
......@@ -243,6 +243,12 @@ public class AssessmentHtmlBuilder {
video = true;
return;
}
} else if("u".equals(localName)) {
qName = "span";
AttributesImpl underlineAttributes = new AttributesImpl("");
underlineAttributes.addAttributes(attributes);
underlineAttributes.addAttribute("style", "text-decoration: underline;");
attributes = underlineAttributes;
}
super.startElement(uri, localName, qName, attributes);
}
......@@ -339,6 +345,14 @@ public class AssessmentHtmlBuilder {
this.attributesUri = uri;
}
public void addAttributes(Attributes attributes) {
for(int i=0; i<attributes.getLength(); i++) {
String name = attributes.getLocalName(i);
String value = attributes.getValue(i);
addAttribute(name, value);
}
}
public void addAttribute(String name, String value) {
attributes.add(new AttributeImpl(name, value));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment