laika.parse.text.WhitespacePreprocessor
See theWhitespacePreprocessor companion object
class WhitespacePreprocessor extends String => String
Processes whitespace, removing or replacing most whitespace characters except for newline and space.
It modifies string input in the following ways:
- Replaces all occurrences of tabs with the corresponding number of spaces, depending on the column the tab is placed in and the configured tabStops
value.
- Removes any return character.
- Replaces form feed and vertical tab with spaces.
The processor should run on text input before it is passed to the actual parsers as they would not be able to deal with tabs properly.
Attributes
- Companion
- object
- Source
- WhitespacePreprocessor.scala
- Graph
-
- Supertypes
Members list
In this article