Skip to content

Commit

Permalink
Double hash issue solved. Fix dgarijo#120
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarijo committed Jan 13, 2016
1 parent f60bebb commit 153c0e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified JAR/widoco-0.0.1-jar-with-dependencies.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions src/main/java/widoco/LODEParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ private Node fixAnchor(Node nodeToFix) {
Node secondAnchor = firstAnchor.getNextSibling();
String newID = firstAnchor.getAttributes().getNamedItem("name").getNodeValue();
newID = newID.replace(c.getMainOntology().getNamespaceURI(), "");
if (newID.startsWith("#")){
newID = newID.replace("#", "");
}//fix in case the author insert the NS URI without "#"
if(secondAnchor.getNodeName().equals("a")){
currentNode.removeChild(secondAnchor);
}
Expand Down

0 comments on commit 153c0e0

Please sign in to comment.