mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 21:18:32 +02:00
add tags to entry in xml
This commit is contained in:
parent
ced121edc5
commit
e134f0161f
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ class XMLExporter(JSONExporter):
|
|||
if hasattr(entry, "uuid"):
|
||||
entry_el.setAttribute("uuid", entry.uuid)
|
||||
entry_el.setAttribute("starred", entry.starred)
|
||||
tags = entry.tags
|
||||
for tag in tags:
|
||||
tag_el = doc.createElement("tag")
|
||||
tag_el.setAttribute("name", tag)
|
||||
entry_el.appendChild(tag_el)
|
||||
entry_el.appendChild(doc.createTextNode(entry.fulltext))
|
||||
return entry_el
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue