about summary refs log tree commit diff
path: root/export.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-14 11:07:33 -0400
committerJune McEnroe <june@causal.agency>2020-04-14 11:07:33 -0400
commit8f6d0a2c1c54542ec32a627054bfe1d015480c87 (patch)
tree7410ba416a2e7b4641320c34c9beccb146673932 /export.c
parentUse mid: URLs for Atom IDs (diff)
downloadbubger-8f6d0a2c1c54542ec32a627054bfe1d015480c87.tar.gz
bubger-8f6d0a2c1c54542ec32a627054bfe1d015480c87.zip
Add decoding stubs
Diffstat (limited to 'export.c')
-rw-r--r--export.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/export.c b/export.c
index f703e20..b34111f 100644
--- a/export.c
+++ b/export.c
@@ -89,10 +89,9 @@ static void exportAtom(
 		!strcmp(structure->type, "TEXT") &&
 		!strcmp(structure->subtype, "PLAIN")
 	) {
-		// TODO: Decode content into file.
 		error = 0
 			|| atomContentOpen(file)
-			|| escapeXML(file, body)
+			|| decodeContent(file, escapeXML, structure, body)
 			|| atomContentClose(file);
 		if (error) err(EX_IOERR, "%s", path);
 	}