diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 9c496b90dd..fc77f162f0 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -8972,6 +8972,7 @@ cmdQemuMonitorCommand(vshControl *ctl, const vshCmd *cmd) if (pretty && (tmp = virJSONValueToString(pretty, true))) { VIR_FREE(result); result = tmp; + virTrimSpaces(result, NULL); } else { vshResetLibvirtError(); }