Skip to content

Commit 56140f1

Browse files
ktlint format
1 parent 4db76f6 commit 56140f1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/explainer/PluginCallbackProxy.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,16 +314,22 @@ private fun convertToDescription(dataframeLike: Any): String =
314314
else -> throw IllegalArgumentException("Unsupported type: ${dataframeLike::class}")
315315
}.escapeHtmlForIFrame()
316316

317-
internal fun String.escapeHtmlForIFrame(): String {
318-
return buildString {
317+
internal fun String.escapeHtmlForIFrame(): String =
318+
buildString {
319319
for (c in this@escapeHtmlForIFrame) {
320320
when (c) {
321321
'<' -> append("&lt;")
322+
322323
'>' -> append("&gt;")
324+
323325
'&' -> append("&amp;")
326+
324327
'"' -> append("&quot;")
328+
325329
'\'' -> append("&#39;")
330+
326331
'\\' -> append("&#92;")
332+
327333
else -> {
328334
if (c.code > 127) {
329335
append("&#${c.code};")
@@ -334,4 +340,3 @@ internal fun String.escapeHtmlForIFrame(): String {
334340
}
335341
}
336342
}
337-
}

0 commit comments

Comments
 (0)