From 3c8631c0d7531ad8cd6cd25f7c782f877687353c Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 10 Dec 2017 13:57:16 +1300 Subject: [PATCH] fix search highlighting for previous --- static/archive.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/archive.js b/static/archive.js index f43e63f..91accd3 100755 --- a/static/archive.js +++ b/static/archive.js @@ -66,11 +66,11 @@ function toggleMenu() { } function highlightLine(no) { - var lines = $chatArea.innerHTML.split('
'); + var lines = $chatArea.innerHTML.split("\n"); lines[no] = '' + lines[no] + ''; - $chatArea.innerHTML = lines.join('
'); + $chatArea.innerHTML = lines.join("\n"); } function onLoad() {