Updated test data and stdlib sources.
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ class SyntaxHighligher() {
|
||||
val styleMap = createStyleMap()
|
||||
|
||||
/** Highlights the given kotlin code as HTML */
|
||||
fun highlight(val code: String): String {
|
||||
fun highlight(code: String): String {
|
||||
try {
|
||||
val builder = StringBuilder()
|
||||
builder.append(
|
||||
|
||||
+1
-1
@@ -154,7 +154,7 @@ abstract class KDocTemplate() : TextTemplate() {
|
||||
}
|
||||
}
|
||||
|
||||
open fun typeArguments(arguments: List<KType>, val prefix: String = "<", val postfix: String = ">", val empty: String = ""): String {
|
||||
open fun typeArguments(arguments: List<KType>, prefix: String = "<", postfix: String = ">", empty: String = ""): String {
|
||||
val text = arguments.map<KType, String>() { link(it) }.makeString(", ")
|
||||
return if (text.length() == 0) empty else "$prefix$text$postfix"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user