From 901f2fc8178b2b266ff7d1c161dd359b6ae7ee4e Mon Sep 17 00:00:00 2001 From: Izwzyzx <184772711+Izwzyzx@users.noreply.github.com> Date: Sun, 17 Oct 2021 22:26:37 -0500 Subject: [PATCH] Escape number signs to prevent unwanted newlines --- .gitignore | 1 + src/Game Information.txt | Bin 669 -> 691 bytes src/Scripts/Textbox/log_update.gml | 10 ++++++---- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 1b6a3bc..20605e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *.gmk *.gm81 +*.gb1 gittogmk gmktogit gmksplit.jar diff --git a/src/Game Information.txt b/src/Game Information.txt index 920a3cc31fedfb11e3a773b04747ce551e9288cf..0f56b00010dcfdff17204928595675e203e78846 100644 GIT binary patch delta 350 zcmbQsx|wx?M15(pVN6PDTABff%t_2kH#9IdhOyI9LA>giwEVo1lB66U!yqOtIU}*C zIJLw;!LcYaF~_ZI1)x;De7Nx`#=ja-l7yzl<(wq`Qg_xw6 zN|Vj~j;kZxWs2s!bfC>xY@*P91fW^yB=uz-f9 vwL(&*LPdTFL~3#rqcy6kwTzlj118^Pv_h3rWm1O8`7@bw1H%DgN-YBbVY+Z6 delta 336 zcmdnYI+t~VM14wXTAD!&kjzQUOE)wyHm;6I%g-w*Ny-5-3}VvqGIL_mk~0#Eic?Dr z6da2(6LYLqMW?qU(Olh)VOhIB%N{m}F(4?f8v|&WHy^6<$(f9@>@evbMr#RF=@^KAO^p>MUuM*V eD`aA_LN~{QNf|C($Yd@K3n*Y1z?=s390LHNlxWTX diff --git a/src/Scripts/Textbox/log_update.gml b/src/Scripts/Textbox/log_update.gml index 66d7e29..b0dcfd0 100644 --- a/src/Scripts/Textbox/log_update.gml +++ b/src/Scripts/Textbox/log_update.gml @@ -9,16 +9,18 @@ str=argument0; logw=argument1; loop=true; +// Escape number signs to prevent unwanted newlines +str=string_replace_all(str,"#","\#"); + while (loop){ if(string_width(str)>logw){ // The string is too long to be displayed on one line. - if(string_pos(" ",str)&&(string_width(string_copy(str,1,string_pos(" ",str)))