Bug 447737 - Xmllint fails to format files with filename containing space
Summary: Xmllint fails to format files with filename containing space
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 21.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-31 12:56 UTC by medin
Modified: 2023-09-30 17:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Xmllint fails to format files with filename containing space (132.08 KB, image/png)
2021-12-31 12:56 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
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