GNU bug report logs -
#75959
[PATCH] (home-)syncthing-service: added support for config serialization
Previous Next
Reported by: Zacchaeus <eikcaz <at> zacchae.us>
Date: Fri, 31 Jan 2025 04:18:03 UTC
Severity: normal
Tags: patch
Done: Leo Famulari <leo <at> famulari.name>
Bug is archived. No further changes may be made.
Full log
Message #38 received at 75959 <at> debbugs.gnu.org (full text, mbox):
On 2025-02-07 22:44, Leo Famulari wrote:
>> +;; It is useful to be able to view the xml output by Guix, and to be able to
>> +;; diff it with a user's previous config, especially when migrating one's
>> +;; config to Guix. This function adds whitespace that matches the whitespace
>> +;; of config files managed by Syncthing for easy diffing.
>> +(define (indent-sxml sxml indent-increment current-indent)
>
> Nice. Hopefully this doesn't go stale anytime soon.
>
> Overall, it's looking good. Thanks a lot for this contribution! Let me
> know what you think about the feedback I've given here.
I think this addition is unnecessary since there's a well-known command
to pretty-print any XML file:
xmllint --format <the-file>
Admittedly to my untrained eyes, this indent-sxml looks complex at a
superficial glance and just adds maintenance burden without necessity
in light of xmllint existence IMO.
My 2ยข,
--
Bruno.
This bug report was last modified 145 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.