comparison src/name/blackcap/imageprep/HelpDialog.kt @ 1:0bded24f746e

Compiles, still untested.
author David Barts <n5jrn@me.com>
date Thu, 16 Jul 2020 21:51:08 -0700
parents e0efe7848130
children
comparison
equal deleted inserted replaced
0:e0efe7848130 1:0bded24f746e
61 } 61 }
62 val rawText = this::class.java.getResourceAsStream("help.html").bufferedReader().use { it.readText() } 62 val rawText = this::class.java.getResourceAsStream("help.html").bufferedReader().use { it.readText() }
63 it.text = rawText.replace("%CONFIG_FILE_NAME%", buildString { 63 it.text = rawText.replace("%CONFIG_FILE_NAME%", buildString {
64 for (ch in PROP_FILE.canonicalPath) { 64 for (ch in PROP_FILE.canonicalPath) {
65 append(when(ch) { 65 append(when(ch) {
66 "<" -> "&lt;" 66 '<' -> "&lt;"
67 ">" -> "&gt;" 67 '>' -> "&gt;"
68 "&" -> "&amp;" 68 '&' -> "&amp;"
69 else -> ch 69 else -> ch
70 }) 70 })
71 } 71 }
72 }) 72 })
73 it.setEditable(false) 73 it.setEditable(false)