From b49f1df2b8604249e969d6f9c7bb8c3af78ed684 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Wed, 13 Mar 2024 12:15:12 +0800 Subject: [PATCH] feat: replace cr with line break as well --- frontend/src/pages/web-logs/[name].vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/pages/web-logs/[name].vue b/frontend/src/pages/web-logs/[name].vue index 4eec854..bedeaa5 100644 --- a/frontend/src/pages/web-logs/[name].vue +++ b/frontend/src/pages/web-logs/[name].vue @@ -29,6 +29,7 @@ let html = ansi_up.ansi_to_html(log); html = html.replaceAll("\r\n", "
"); html = html.replaceAll("\n", "
"); + html = html.replaceAll("\r", "
"); this.html = html; } }