diff options
Diffstat (limited to 'support/latexindent/LatexIndent/BackUpFileProcedure.pm')
-rw-r--r-- | support/latexindent/LatexIndent/BackUpFileProcedure.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/support/latexindent/LatexIndent/BackUpFileProcedure.pm b/support/latexindent/LatexIndent/BackUpFileProcedure.pm index f88304fc6c..cba8435211 100644 --- a/support/latexindent/LatexIndent/BackUpFileProcedure.pm +++ b/support/latexindent/LatexIndent/BackUpFileProcedure.pm @@ -54,6 +54,11 @@ sub create_back_up_file { # add the user's backup directory to the backup path $backupFileNoExt = "${$self}{cruftDirectory}/$backupFileNoExt"; + $backupFileNoExt =~ s/\\/\//g; + $backupFileNoExt =~ s/\/{2,}/\//g; + if ( $^O eq 'MSWin32' ) { + $backupFileNoExt =~ s/\//\\/g; + } # local variables, determined from the YAML settings my $onlyOneBackUp = $mainSettings{onlyOneBackUp}; |