summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--atom.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/atom.c b/atom.c
index 80639a3..d3463ce 100644
--- a/atom.c
+++ b/atom.c
@@ -72,27 +72,11 @@ int atomEntryOpen(FILE *file, const struct Envelope *envelope) {
 }
 
 int atomContentOpen(FILE *file) {
-	const char *template = TEMPLATE(
-		<content type="html">
-		[<pre>]
-	);
-	struct Variable vars[] = {
-		{ "<pre>", "<pre>" },
-		{0},
-	};
-	return templateRender(file, template, vars, escapeXML);
+	return templateRender(file, TEMPLATE(<content type="text">), NULL, NULL);
 }
 
 int atomContentClose(FILE *file) {
-	const char *template = TEMPLATE(
-		[</pre>]
-		</content>
-	);
-	struct Variable vars[] = {
-		{ "</pre>", "</pre>" },
-		{0},
-	};
-	return templateRender(file, template, vars, escapeXML);
+	return templateRender(file, TEMPLATE(</content>), NULL, NULL);
 }
 
 int atomEntryClose(FILE *file) {