class documentation

class NormalizeWhitespace(Preprocessor): (source)

View In Hierarchy

Normalize whitespace for consistent parsing.

Method run Each subclass of Preprocessor should override the `run` method, which takes the document as a list of strings split by newlines and returns the (possibly modified) list of lines.

Inherited from Processor (via Preprocessor):

Method __init__ Undocumented
Instance Variable md Undocumented
def run(self, lines): (source)

Each subclass of Preprocessor should override the `run` method, which takes the document as a list of strings split by newlines and returns the (possibly modified) list of lines.