You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/lang/DocumentationPreprocessor.kt
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -102,11 +102,9 @@ class DocumentationPreprocessor : KotlinIntegration {
102
102
}
103
103
}
104
104
"li"-> {
105
-
val childNode =if (node.childNodes().isNotEmpty()) node.childNode(0) elsenull
106
-
107
105
// If this list item holds a sublist, then we essentially just want to line break right away and
108
106
// render the nested list as normal.
109
-
val prefix =if (childNode?.nodeName() =="ul") "\n"else""
107
+
val prefix =if (node.childNodes().firstOrNull()?.nodeName() =="ul") "\n"else""
0 commit comments