In a Python programme, I'm trying to add a single element to an XML file (as a grandchild of the root) and write back the XML file, preserving all formatting, whitespace and comments. I've had some success with xml.sax.XMLFilterBase but I just can't work out how to preserve comments or the distinction between <foo></foo> and <foo/>. Any tips?
(This change will form part of a pull request that will be reviewed by a human, hence the need to preserve non-semantic stuff.)
Does anyone know who the voice in the GNOME Settings speaker test who says “Front Left” and “Front Right” is? How is this localized? #GUADEC2019
“When you're given a gift for your birthday, most people don't throw it in your face and say ‘I hope you die’.” – Britt Yazel @ #GUADEC
@mathieu your GUADEC badge has been spotted!
My Defective By Design protest days are behind me, but … it's still true! I “bought” the last season of a famous dragon-based show, and the vendor app for my TV has no subtitles and is unreliable at streaming. But even in a house with dozens of Turing machines I can't find a way to download the episode, then play it in 4K on the TV.
free software esoterica
Sometimes, quixotic quests work out. The next version of xgettext will not extract Icon= from .desktop.in files. No more comments like this:
# TRANSLATORS: do not translate this!
If you're involved with an app on Flathub, check if it has OARS metadata!
@mjog Geary is really a pleasure to use these days – great work.
Free Software eng manager and sporadic enthusiast. Cat spectator. I once worked in “film” and it was weird. He/him.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!