# HG changeset patch # User HIROSE Yuuji # Date 1653793606 -32400 # Node ID eb0ffd3b37c067b13a72193f76a56b9efbe95d6d # Parent ae6c5df09f220006744a312c82c00226e54b74a1 Fix for single line reply diff -r ae6c5df09f22 -r eb0ffd3b37c0 s4-main.js --- a/s4-main.js Sun May 29 08:36:39 2022 +0900 +++ b/s4-main.js Sun May 29 12:06:46 2022 +0900 @@ -1051,8 +1051,15 @@ let text = td.innerHTML; if (text.startsWith("\>#")) { let newline = text.indexOf("\n"); - let first = text.substring(0, newline), + let first = rest = text.substring(newline); + if (newline) { + first = text.substring(0, newline); + rest = text.substring(newline); + } else { + first = text; + rest = ""; + } td.innerHTML = first.replace( /#([0-9]+)/g, (match, start, whole) => {