Menu

#2505 htlatex.exe removes quotes.

6000
fixed
None
2016-07-03
2016-06-06
U_Fischer
No

This call of htlatex

G:\Z-Test>htlatex.exe test-utf8 "xhtml,ooffice" "ooffice/! -cmozhtf" "-coo -cvalidate"

leads to the following call of htlatex.bat:

[8888] TRACE htlatex.core - start process: C:\Windows\system32\cmd.exe /s /c "D:\MiKTeX2.9\scripts\tex4ht\htlatex.bat test-utf8 xhtml,ooffice "ooffice/! -cmozhtf" "-coo -cvalidate""

As one can see the quotes around xhtml,ooffice has been removed. As in batch files commas are argument delimiters this means the arguments are shifted and -coo -cvalidate is argument %5 instead of %4 and so the script fails.

If one adds a space in the second argument:

`G:\Z-Test>htlatex.exe test-utf8 "xhtml, ooffice" "ooffice/! -cmozhtf" "-coo -cvalidate"``

Then htlatex.exe pass the quotes to the batch file and the compilation succeeds:

[8696] TRACE htlatex.core - start process: C:\Windows\system32\cmd.exe /s /c "D:\MiKTeX2.9\scripts\tex4ht\htlatex.bat test-utf8 "xhtml, ooffice" "ooffice/! -cmozhtf" "-coo -cvalidate"" 

Discussion

  • Christian Schenk

    • status: open --> in-the-works
    • assigned_to: Christian Schenk
     
  • Christian Schenk

    • Milestone: None --> 6000
     
  • Christian Schenk

    • Status: in-the-works --> fixed