hgweb: remove unnecessary CDATA markup in atom/branchentry.tmpl
authorAnton Shestakov <av6@dwimlabs.net>
Wed, 29 Jun 2016 20:58:09 +0800
changeset 29437 6ab3465d9991
parent 29436 849b8e84487e
child 29438 82858f144217
hgweb: remove unnecessary CDATA markup in atom/branchentry.tmpl Since content is of type "text" (and is already escaped), using a CDATA section is not required. Looks like this was just an artifact of copying things from rss style in add2f9ddcfb5, because other entries in atom style don't use CDATA in such places.
mercurial/templates/atom/branchentry.tmpl
--- a/mercurial/templates/atom/branchentry.tmpl	Wed Jun 29 20:19:04 2016 +0800
+++ b/mercurial/templates/atom/branchentry.tmpl	Wed Jun 29 20:58:09 2016 +0800
@@ -4,5 +4,5 @@
   <id>{urlbase}{url|urlescape}#branch-{node}</id>
   <updated>{date|rfc3339date}</updated>
   <published>{date|rfc3339date}</published>
-  <content type="text"><![CDATA[{branch|strip|escape|addbreaks}]]></content>
+  <content type="text">{branch|strip|escape}</content>
  </entry>