You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed, that buku concatenates strings generated by "for loops" in order to generate (i.e. export) XML and other type of files. This is understandable for files of type Markdown and Org.
However, I do not think that it should be so for XML files, except for Netscape HTML bookmarks because it is a not-well-formed XML.
gemini://woodpeckersnest.space/~schapps/journal/2025-01-08-deprecate-netscape-bookmarks.gmi
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Greetings!
TL;TD; The question is at the last line.
I have noticed, that buku concatenates strings generated by "for loops" in order to generate (i.e. export) XML and other type of files. This is understandable for files of type Markdown and Org.
However, I do not think that it should be so for XML files, except for Netscape HTML bookmarks because it is a not-well-formed XML.
gemini://woodpeckersnest.space/~schapps/journal/2025-01-08-deprecate-netscape-bookmarks.gmi
I do so to generate Atom, OPML and XHTML.
https://git.xmpp-it.net/sch/Rivista/src/branch/main/rivista/xml/opml.py
I concatenate strings, only when
ElementTree
does not appear to support certain cases, such as appending a reference to XSLT stylesheet.https://git.xmpp-it.net/sch/Rivista/src/branch/main/rivista/xml/xslt.py
Would it be acceptable to utilize class
ElementTree
(i.e.import xml.etree.ElementTree as ET
) for that task or is it not desirable?Kindly,
Schimon
Beta Was this translation helpful? Give feedback.
All reactions