Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix list parsing edge case #358

Merged
merged 1 commit into from
Oct 5, 2023

Commits on Oct 1, 2023

  1. fix list parsing edge case

    fix an incorrect list parsing (text dropped) in situations like:
    
    ```
    1. item 1
    2. \xA0 item 2
    ```
    
    The line text is dropped because first non-space sharacter happens
    to match `\s` regex pattern.
    
    There are alternative fixes:
    
    * change regex to `( *)[^ ]`.
    * use `text.isspace()` and `text.lstrip()` instead of regex matching.
    vadim-or committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    b950c96 View commit details
    Browse the repository at this point in the history