Skip to content

Commit 05e3ded

Browse files
committed
lesson7: fix random error Kotlin-Polytech#2
1 parent 6484885 commit 05e3ded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lesson7/task1/Files.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ fun markdownToHtmlSimple(inputName: String, outputName: String) {
312312
}
313313

314314
lines.forEachIndexed { idx, it ->
315-
val str = it.replace("\t", "")
315+
val str = it.replace("\t", "").replace(" ", "")
316316
if (idx > 0) {
317-
val strPrev = lines[idx - 1].replace("\t", "")
317+
val strPrev = lines[idx - 1].replace("\t", "").replace(" ", "")
318318
if (strPrev == "" || strPrev == " ") {
319319
if (ongoingParagraph) {
320320
builder.append("</p>")

0 commit comments

Comments
 (0)