aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-version-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-05-16 16:32:54 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-05-16 16:32:54 +0300
commitd70fd11d67e584003fabfb3fa86f7acd0533d8ce (patch)
tree36c196608d165a6c492763fb1a40daad665deccf /mod/mod-package-version-details.cxx
parent8f9a80a9ac8f353ce2cdafa23f0e5163d30d5800 (diff)
Strip package title from package description on package and version details pages
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r--mod/mod-package-version-details.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx
index 82221b4..40cbad6 100644
--- a/mod/mod-package-version-details.cxx
+++ b/mod/mod-package-version-details.cxx
@@ -187,9 +187,15 @@ handle (request& rq, response& rs)
const string what (title + " description");
s << (full
- ? DIV_TEXT (*d, *pkg->description_type, id, what, error)
+ ? DIV_TEXT (*d, *
+ pkg->description_type,
+ true /* strip_title */,
+ id,
+ what,
+ error)
: DIV_TEXT (*d,
*pkg->description_type,
+ true /* strip_title */,
options_->package_description (),
url (!full, id),
id,