Skip to content

Commit

Permalink
Sort, more magic
Browse files Browse the repository at this point in the history
  • Loading branch information
KuechA committed Jun 21, 2024
1 parent 5263e3d commit c760aa6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,12 @@ class TSFIInformationExtractor : InformationExtractor() {

override fun formatTSFIInformation(formatter: Formatter): String {
var xml = ""
for (tsfi in tsfiDeclarations){
for (tsfi in tsfiDeclarations.sortedBy { getComplexName(it.annotated) }) {
var tsfiContent = formatter.format("description", tsfi.description, mapOf())

var parametersContent = ""
for(param in tsfi.params){
parametersContent += formatter.format("parameter", param.description, mapOf("name" to param.name, "type" to param.type.name.toString().replace("<", "&lt;").replace(">", "&gt;").replace("[]", "Array")))
parametersContent += formatter.format("parameter", param.description, mapOf("name" to param.name, "type" to param.type.name.toString().replace("<", "&lt;").replace(">", &gt;").replace("[]", "Array")))
}
if(parametersContent.isEmpty()) parametersContent = " "
Expand Down Expand Up @@ -406,7 +406,7 @@ class TSFIInformationExtractor : InformationExtractor() {
}else{
nameString = node.name.toString()
}
return nameString.replace("<", "&lt;").replace(">", "&gt;")
return nameString.replace("<", "-lt-").replace(">", "-gt-")
}
private fun replaceSFName(name:String): String{
Expand Down

0 comments on commit c760aa6

Please sign in to comment.