Bug 447737

Summary: Xmllint fails to format files with filename containing space
Product: [Applications] kate Reporter: medin <med.medin.2014>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 21.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Xmllint fails to format files with filename containing space

Description medin 2021-12-31 12:56:05 UTC
Created attachment 144989 [details]
Xmllint fails to format files with filename containing space

In External Tools configuration page the argument "--format %{Document:FileName}" of command "xmllint" causes failure to format opened files which have space in theirs filenames.
I tried enclosing %{Document:FileName} inside "" and it seems to work but I don't know if it's the correct fix :)
Comment 1 Dominik Haumann 2022-01-10 06:49:01 UTC
Adding quotes is the correct fix for now, thanks for the investigation.
Comment 2 Christoph Cullmann 2023-09-30 17:29:08 UTC
Git commit bd4b230a914238c12852471e56e2e796ac241b0d by Christoph Cullmann.
Committed on 30/09/2023 at 19:29.
Pushed by cullmann into branch 'master'.

workaround for names with spaces

M  +1    -1    addons/externaltools/externaltools-config/xml_format_full_file

https://invent.kde.org/utilities/kate/-/commit/bd4b230a914238c12852471e56e2e796ac241b0d