-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: provide informative exception for trailing escapes in tables (#…
…241) With the Python implementation: 1. Whitespace either side of a table row is stripped. 2. The table row is passed to a function to strip and yields its cell values 3. Characters in each cell are iterated over to handle them appropriately, such as new columns (|), escape characters, etc. 4. As escape characters are typically followed by a special character (e.g. n, t), when an escape character is detected \\ an additional next call is made to grab the next character 5. As in step 1, whitespace after a trailing escape character (\\) would be stripped, there would not be a following character and a StopIteration error is raised.
- Loading branch information
1 parent
cf3d3a0
commit 0353c9d
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters