Skip to content

Commit 1ea2c18

Browse files
Merge pull request #1566 from virtualcell/vcell-help-hyperlinks
External Links are placed in Paranthesiss
2 parents 56fdf39 + d33403f commit 1ea2c18

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

vcell-client/src/main/java/org/vcell/documentation/JavaHelpHtmlWriter.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ private void printComponent(Documentation documentation, DocTextComponent docCom
126126
}catch(Exception e1){
127127
System.err.println("Error in xml file:" + sourceHtmlFile.getAbsolutePath().replace(".html", ".xml") + ". Server failed to respond: " + docLink.getTarget()+". It might be a bad URL.");
128128
}
129-
pw.print("<a href=\""+docLink.getTarget()+"\">");
129+
pw.print(docLink.getText());
130+
pw.print(" (<i>" + docLink.getTarget() + " </i>)");
130131
}
131132
else
132133
{
@@ -150,9 +151,9 @@ private void printComponent(Documentation documentation, DocTextComponent docCom
150151
String relativePathToTarget = getHelpRelativePath(directory, htmlFile);
151152
pw.print("<a href=\""+relativePathToTarget+"\">");
152153
}
154+
pw.print(docLink.getText());
155+
pw.print("</a>");
153156
}
154-
pw.print(docLink.getText());
155-
pw.print("</a>");
156157
}else if (docComp instanceof DocImageReference imageReference){
157158
DocumentImage targetImage = documentation.getDocumentImage(imageReference);
158159
if (targetImage==null){

0 commit comments

Comments
 (0)