macports / macports-webapp

Web application to display information about ports, build history and installation statistics
https://ports.macports.org/
BSD 2-Clause "Simplified" License
56 stars 27 forks source link

Hide port long description with full stop #332

Closed harens closed 2 years ago

harens commented 2 years ago

Currently, if description == long_description, the long description is hidden.

image

It's quite common in some ports for the long description to simply be {*}${description}. (note the full stop), in which case the long description is shown.

image

This very simple PR aims to change this behaviour to hide the long description in both cases.

codecov[bot] commented 2 years ago

Codecov Report

Merging #332 (f2b4c8d) into main (78026bb) will increase coverage by 0.03%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #332      +/-   ##
==========================================
+ Coverage   81.17%   81.20%   +0.03%     
==========================================
  Files         111      111              
  Lines        2762     2762              
  Branches      216      216              
==========================================
+ Hits         2242     2243       +1     
  Misses        474      474              
+ Partials       46       45       -1     
Impacted Files Coverage Δ
buildhistory/tests.py 100.00% <0.00%> (+0.86%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 78026bb...f2b4c8d. Read the comment docs.