From a0307f9ab25cceaf21dd968e79a45f0082923a0b Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Thu, 12 Aug 2021 19:06:31 +0000 Subject: [PATCH] Add a few more escape sequences to BishiBashi information message conversion. --- bemani/backend/bishi/bishi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bemani/backend/bishi/bishi.py b/bemani/backend/bishi/bishi.py index 632412c..c9856f9 100644 --- a/bemani/backend/bishi/bishi.py +++ b/bemani/backend/bishi/bishi.py @@ -85,6 +85,8 @@ class TheStarBishiBashi( def __escape_string(self, data: Union[int, str]) -> str: data = str(data) data = data.replace("#", "##") + data = data.replace("\r\n", "#n") + data = data.replace("\r", "#n") data = data.replace("\n", "#n") data = data.replace(" ", "#s") data = data.replace(",", "#,")