about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-26 15:16:14 -0400
committerJune McEnroe <june@causal.agency>2020-04-26 15:16:14 -0400
commitec2452d8f7b850c702df5fb76d2571028202cd58 (patch)
treeab17c0e902d54cf716cd1350c358eedcd245ca4a
parentStyle index page (diff)
downloadbubger-ec2452d8f7b850c702df5fb76d2571028202cd58.tar.gz
bubger-ec2452d8f7b850c702df5fb76d2571028202cd58.zip
Generate XHTML content in Atom entries
-rw-r--r--atom.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/atom.c b/atom.c
index 405bf39..b0ee921 100644
--- a/atom.c
+++ b/atom.c
@@ -88,7 +88,11 @@ int atomEntryOpen(FILE *file, const struct Envelope *envelope) {
 
 int atomContent(FILE *file, const char *content) {
 	const char *template = TEMPLATE(
-		<content type="text">[content]</content>
+		<content type="xhtml">
+			<div xmlns="http://www.w3.org/1999/xhtml">
+				<pre>[content]</pre>
+			</div>
+		</content>
 	);
 	struct Variable vars[] = {
 		{ "content", content },