From 02437f1fcb9bd5bb8156aa5ea588b2afc5db1034 Mon Sep 17 00:00:00 2001 From: ArborealAnole <63668822+ArborealAnole@users.noreply.github.com> Date: Wed, 3 Jun 2020 07:15:19 -0400 Subject: [PATCH] work with spaces in file name Remove double quotes from `\ip@file` with `\StrSubstitute` from `xstring` package. --- ifplatform/ifplatform.dtx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ifplatform/ifplatform.dtx b/ifplatform/ifplatform.dtx index 0fe2dd7..0b37db7 100644 --- a/ifplatform/ifplatform.dtx +++ b/ifplatform/ifplatform.dtx @@ -210,7 +210,7 @@ This work consists of the file ifplatform.dtx % \end{macrocode} % Packages required: (thanks Heiko) % \begin{macrocode} -\RequirePackage{shellesc,pdftexcmds,catchfile,ifluatex} +\RequirePackage{shellesc,pdftexcmds,catchfile,ifluatex,xstring} % \end{macrocode} % Conditionals we provide: % \begin{macrocode} @@ -244,6 +244,7 @@ This work consists of the file ifplatform.dtx % For internal stuff later: % \begin{macrocode} \edef\ip@file{\jobname.w18} +\StrSubstitute{\ip@file}{"}{}[\ip@file] \newif\if@ip@nix@ % \end{macrocode} % \begin{macro}{\ifshellescape}