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

Don't split input over multiple lines in debug view. #516

Closed
wants to merge 1 commit into from

Commits on Apr 30, 2024

  1. Don't split input over multiple lines in debug view.

    If the Input type is a slice, using `{:#?}` will insert newlines into
    the debug view. This messes up the output, which is counting charecters
    to fill a single line.
    
    Before:
    
    ```
    > alt                                                      | [
        Call @ 0..4,
        Ident
     > separated_foldl1                                        | [
        Call @ 0..4,
        Ident
      > separated_foldl1                                       | [
        Call @ 0..4,
        Ident
       > separated_foldl1                                      | [
        Call @ 0..4,
        Ident
        > separated_foldl1                                     | [
        Call @ 0..4,
        Ident
         > separated_foldl1                                    | [
        Call @ 0..4,
        Ident
          > separated_foldl1                                   | [
        Call @ 0..4,
        Ident
           > alt                                               | [
        Call @ 0..4,
        Ident
            > alt                                              | [
        Call @ 0..4,
        Ident
             > one_of                                          | [
        Call @ 0..4,
        Ident
              > any                                            | [
        Call @ 0..4,
        Ident
    ```
    
    After:
    
    ```
    > alt                                                      | [Call @ 0..4, Ident @ 5..19,
     > separated_foldl1                                        | [Call @ 0..4, Ident @ 5..19,
      > separated_foldl1                                       | [Call @ 0..4, Ident @ 5..19,
       > separated_foldl1                                      | [Call @ 0..4, Ident @ 5..19,
        > separated_foldl1                                     | [Call @ 0..4, Ident @ 5..19,
         > separated_foldl1                                    | [Call @ 0..4, Ident @ 5..19,
          > separated_foldl1                                   | [Call @ 0..4, Ident @ 5..19,
           > alt                                               | [Call @ 0..4, Ident @ 5..19,
            > alt                                              | [Call @ 0..4, Ident @ 5..19,
             > one_of                                          | [Call @ 0..4, Ident @ 5..19,
              > any                                            | [Call @ 0..4, Ident @ 5..19,
    ```
    aDotInTheVoid committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    02bec58 View commit details
    Browse the repository at this point in the history