From 6f900f426299c4b9945b0d0fc576c4c226a9ffeb Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 7 Feb 2021 16:49:38 -0500 Subject: [PATCH] make: Change atom generation to use CDATA over escaping escaping via sed was proving difficult to get right (doubly nested escapes, since the HTML is also escaped by mandoc). The use of CDATA should hopefully be more correct (we'll see). --- genatom.sh | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/genatom.sh b/genatom.sh index 90ec272..150bd53 100755 --- a/genatom.sh +++ b/genatom.sh @@ -33,17 +33,14 @@ for p in $POSTS; do ${d}T00:00Z ${d}T00:00Z + /\>/g' - printf " \n \n" + # Print fragment (no need for escapes -- in CDATA + mandoc -Thtml -O'fragment,man=%N.html;https://man.openbsd.org/%N.%S' $p.7 + cat < + + +EOENTRY done printf "\n" -- libgit2 1.1.1