Skip to content

Commit 5d1e012

Browse files
bpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849)
(cherry picked from commit e61cc48) Co-authored-by: chrullrich <[email protected]>
1 parent 88bd26a commit 5d1e012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if exist "%HTMLHELP%" goto :skiphhcsearch
4141

4242
rem Search for HHC in likely places
4343
set HTMLHELP=
44-
where hhc /q && set HTMLHELP=hhc && goto :skiphhcsearch
44+
where hhc /q && set "HTMLHELP=hhc" && goto :skiphhcsearch
4545
where /R ..\externals hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc"
4646
if not exist "%HTMLHELP%" where /R "%ProgramFiles(x86)%" hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc"
4747
if not exist "%HTMLHELP%" where /R "%ProgramFiles%" hhc > "%TEMP%\hhc.loc" 2> nul && set /P HTMLHELP= < "%TEMP%\hhc.loc" & del "%TEMP%\hhc.loc"

0 commit comments

Comments
 (0)