From 62b16c11d85d7fa8155f8ed043317cdd9182b6d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 9 May 2017 12:21:25 +0300 Subject: [PATCH] Spelling fixes --- scour/scour.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scour/scour.py b/scour/scour.py index 83591a6..06f463e 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -2742,7 +2742,7 @@ def optimizeAngle(angle): angle %= -360 else: angle %= 360 - # 720 degrees is unneccessary, as 360 covers all angles. + # 720 degrees is unnecessary, as 360 covers all angles. # As "-x" is shorter than "35x" and "-xxx" one character # longer than positive angles <= 260, we constrain angle # range to [-90, 270[ (or, equally valid: ]-100, 260]). @@ -3498,7 +3498,7 @@ def scourString(in_string, options=None): viewBox = doc.documentElement.getAttribute('viewBox') if viewBox: lengths = re.split('[, ]+', viewBox) - lengths = [scourUnitlessLength(lenght) for lenght in lengths] + lengths = [scourUnitlessLength(length) for length in lengths] doc.documentElement.setAttribute('viewBox', ' '.join(lengths)) # more length scouring in this function @@ -3693,7 +3693,7 @@ _option_group_formatting.add_option("--nindent", _option_group_formatting.add_option("--no-line-breaks", action="store_false", dest="newlines", default=True, help="do not create line breaks in output" - "(also disables indentation; might be overriden by xml:space=\"preserve\")") + "(also disables indentation; might be overridden by xml:space=\"preserve\")") _option_group_formatting.add_option("--strip-xml-space", action="store_true", dest="strip_xml_space_attribute", default=False, help="strip the xml:space=\"preserve\" attribute from the root SVG element")