Skip to content

Commit

Permalink
Merge branch 'master' into homology-coeffs
Browse files Browse the repository at this point in the history
  • Loading branch information
saraedum authored Nov 21, 2024
2 parents 0f1984c + 0d8928d commit 6e6185e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/news/64gon.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Fixed:**

* Fixed a printing issues with surfaces containing 21-gons to 99-gons.
4 changes: 3 additions & 1 deletion flatsurf/geometry/categories/polygons.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def _describe_polygon(num_edges, **kwargs):
('a', 'regular nonagon', 'regular nonagons')
sage: Polygons._describe_polygon(4, equiangular=False, equilateral=True)
('a', 'rhombus', 'rhombi')
sage: Polygons._describe_polygon(64, equiangular=False, equilateral=False)
('a', '64-gon', '64-gons')
"""
from sage.all import infinity
Expand Down Expand Up @@ -136,7 +138,7 @@ def _describe_polygon(num_edges, **kwargs):
infinity: ("an", "apeirogon"),
}

description = ngon_names.get(num_edges, f"{num_edges}-gon")
description = ngon_names.get(num_edges, ("a", f"{num_edges}-gon"))
description = description + (description[1] + "s",)

def augment(article, *attributes):
Expand Down

0 comments on commit 6e6185e

Please sign in to comment.