zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: quoting fix for xmllint --pretty completion
@ 2021-07-12  9:36 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2021-07-12  9:36 UTC (permalink / raw)
  To: Zsh workers

Completion after xmllint --pretty complains with: (eval):1: unmatched '
The double quotes alone were not enough to handle the single quote
as _arguments is using eval. You need to actually complete that option
to see the error so this has gone unnoticed.

Oliver

diff --git a/Completion/Unix/Command/_xmlsoft b/Completion/Unix/Command/_xmlsoft
index 6f7e3b7c9..9f1206988 100644
--- a/Completion/Unix/Command/_xmlsoft
+++ b/Completion/Unix/Command/_xmlsoft
@@ -98,7 +98,7 @@ case $service in
       '--format[reformat/reindent the input]' \
       '--encode[output in the given encoding]:encoding:(${encoding[@]})' \
       '--dropdtd[remove the DOCTYPE of the input docs]' \
-      "--pretty[pretty-print in a particular style]:style:((0\:don't\ pretty\ print 1\:reformat 2\:add\ whitespace))" \
+      "--pretty[pretty-print in a particular style]:style:((0\:don\'t\ pretty\ print 1\:reformat 2\:add\ whitespace))" \
       '--c14n[save in W3C canonical format]' \
       '--c14n11[save in W3C canonical format v1.1 (with comments)]' \
       '--exc-c14n[save in W3C exclusive canonical format]' \


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-12  9:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12  9:36 PATCH: quoting fix for xmllint --pretty completion Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).