Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2019-06-11 12:21:13 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2019-06-11 19:59:08 +0300
commitdd2acec3d8d881e9560f3f07455f138a140248b8 (patch)
tree151fa536be09e4c3f2e97152ce638dfed4fd3ca6 /calm/pkg2html.py
parent05fd42a2837950e66d744caf10e076311db6dd49 (diff)
Use summary/description rather than sdesc/ldesc in package summary page
Also HTML escape those texts
Diffstat (limited to 'calm/pkg2html.py')
-rwxr-xr-xcalm/pkg2html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/calm/pkg2html.py b/calm/pkg2html.py
index 9409e8e..54edca4 100755
--- a/calm/pkg2html.py
+++ b/calm/pkg2html.py
@@ -176,8 +176,8 @@ def update_package_listings(args, packages):
<!--#include virtual="/top.html" -->
<h1>Package: %s</h1>''' % (title, p)), file=f)
- print('<span class="detail">sdesc</span>: %s<br><br>' % sdesc(arch_packages, p, bv), file=f)
- print('<span class="detail">ldesc</span>: %s<br><br>' % ldesc(arch_packages, p, bv), file=f)
+ print('<span class="detail">summary</span>: %s<br><br>' % html.escape(sdesc(arch_packages, p, bv), quote=False), file=f)
+ print('<span class="detail">description</span>: %s<br><br>' % html.escape(ldesc(arch_packages, p, bv), quote=False), file=f)
print('<span class="detail">categories</span>: %s<br><br>' % arch_packages[p].version_hints[bv].get('category', ''), file=f)
for key in ['depends', 'obsoletes', 'provides', 'conflicts', 'build-depends']: