diff --git a/src/sage/graphs/dot2tex_utils.py b/src/sage/graphs/dot2tex_utils.py index 4568fe2287c..d67d283234d 100644 --- a/src/sage/graphs/dot2tex_utils.py +++ b/src/sage/graphs/dot2tex_utils.py @@ -77,11 +77,13 @@ def quoted_latex(x): """ return re.sub("\"|\r|(%[^\n]*)?\n","", latex(x)) + def quoted_str(x): - """ - Strips the string representation of ``x`` to make it suitable for - a ``dot2tex`` string, and especially a node label (``dot2tex`` - gets confused by newlines, and braces) + r""" + Strip the string representation of ``x`` to make it suitable for + a ``dot2tex`` string, and especially a node label. + + Indeed, ``dot2tex`` gets confused by newlines, and braces. EXAMPLES:: diff --git a/src/sage/plot/polygon.py b/src/sage/plot/polygon.py index 82ea3197162..916957643d7 100644 --- a/src/sage/plot/polygon.py +++ b/src/sage/plot/polygon.py @@ -97,8 +97,9 @@ def _repr_(self): def __getitem__(self, i): """ - Return `i`th vertex of Polygon primitive, starting count - from 0th vertex. + Return `i`-th vertex of Polygon primitive + + It is starting count from 0th vertex. EXAMPLES:: @@ -111,9 +112,11 @@ def __getitem__(self, i): def __setitem__(self, i, point): """ - Changes `i`th vertex of Polygon primitive, starting count - from 0th vertex. Note that this only changes a vertex, - but does not create new vertices. + Change `i`-th vertex of Polygon primitive + + It is starting count from 0th vertex. + + Note that this only changes a vertex, but does not create new vertices. EXAMPLES::