Chris Chambers avatar Chris Chambers committed 5015820

Correcting spelling errors

Comments (0)

Files changed (1)

 matchupdate = re.compile(
     r'''^(?:\s*\n)?                    # zero or more empty lines
-    (?P<list>(\*\s+)|(\d+\.\s+)|\s*)?  # optionaly include a list or indent
+    (?P<list>(\*\s+)|(\d+\.\s+)|\s*)?  # optionally include a list or indent
     (?P<level>\#{1,6})[ \t]*           # one or more number signs
     update\b                           # "update" (case insensitive)
     (?P<metadata>[^\n]+)\n+            # date, time, and time zone
         source = self._pluckhandcraftedexcerpt()
         updates = []
-        intersperced = ""
+        interspersed = ""
         MANGO_PLACEHOLDER = "MangoUpdatePlaceholderxxz"
         for nonsection, section in itersections(source):
-            intersperced += nonsection
+            interspersed += nonsection
             match = matchupdate(section)
             if match:
-                intersperced +='list') or ''
-                intersperced += MANGO_PLACEHOLDER + '\n'
+                interspersed +='list') or ''
+                interspersed += MANGO_PLACEHOLDER + '\n'
                 update = renderupdate(self, match)
                 if update:
             if section:
-                intersperced += section
+                interspersed += section
                 self._excerpt += self._convert(section) + '\n'
-        self.html += self._convert(intersperced)
+        self.html += self._convert(interspersed)
         # We will only sometimes have it wrapped in <p> tags, rely on the <div> for formatting
         self.html = self.html.replace('<p>' + MANGO_PLACEHOLDER + '</p>', MANGO_PLACEHOLDER)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.