KDoc. Don't ignore links in @see

Such link was totally ignored:
/**
 * @see <a href="http://kotl.in">http://kotl.in</a>
 */
This commit is contained in:
Svetlana Isakova
2015-10-09 14:51:31 +03:00
parent 818931ec06
commit c531c5a0af
2 changed files with 9 additions and 2 deletions
@@ -57,7 +57,13 @@ object KDocRenderer {
to.append("<DT><b>").append("See Also:").append("</b>")
to.append("<DD>")
seeTags.forEachIndexed { index, tag ->
DocumentationManagerUtil.createHyperlink(to, tag.getSubjectName(), tag.getSubjectName(), false)
val subjectName = tag.getSubjectName()
if (subjectName != null) {
DocumentationManagerUtil.createHyperlink(to, subjectName, subjectName, false)
}
else {
to.append(tag.getContent())
}
if (index < seeTags.size() - 1) {
to.append(", ")
}
+2 -1
View File
@@ -1,6 +1,7 @@
/**
* @see C
* @see D
* @see <a href="http://kotl.in">kotlin</a>
*/
fun testMethod() {
@@ -17,4 +18,4 @@ fun test() {
}
//INFO: <b>public</b> <b>fun</b> testMethod(): Unit <i>defined in</i> root package<br/>
//INFO: <DD><DL><DT><b>See Also:</b><DD><a href="psi_element://C"><code>C</code></a>, <a href="psi_element://D"><code>D</code></a></DD></DL></DD>
//INFO: <DD><DL><DT><b>See Also:</b><DD><a href="psi_element://C"><code>C</code></a>, <a href="psi_element://D"><code>D</code></a>, <a href="http://kotl.in">kotlin</a></DD></DL></DD>