Skip to content

Commit f97d190

Browse files
committed
Fixed handling of | char in changelogs
Fixes #46
1 parent 7f7cdd4 commit f97d190

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

batch encoder.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ if defined par_updated-from (
128128
set "UpdateVersion=v%ver:~1%"
129129

130130
>%TEMP%\batch_update.tmp findstr "body" %updateFileName%
131-
set "pwsh_replace=-replace '^!' -replace '^<\/\S*?^>', '#[FORMEND]#' -replace '^<\S*?^>', '#[FORM]#' -replace '^<', '(less)' -replace '^>', '(more)'"
131+
set "pwsh_replace=-replace '^!' -replace '^<\/\S*?^>', '#[FORMEND]#' -replace '^<\S*?^>', '#[FORM]#' -replace '^<', '(less)' -replace '^>', '(more)' -replace '\^|', '/'"
132132
for /F "tokens=*" %%g in ('powershell -Command "(Get-Content $env:TEMP\batch_update.tmp) !pwsh_replace! "') do (set entry_body=%%g)
133133
set "changelog=%entry_body:~9,-1%"
134134
set "changelog=%changelog:#[FORM]#=%"
@@ -461,7 +461,6 @@ if %TOTAL% equ 0 (echo  No files found. %formatend%)
461461
exit /b 0
462462
463463
:CritError
464-
timeout /t 1 > nul
465464
echo.
466465
call:ErrorLine
467466
echo.

0 commit comments

Comments
 (0)