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

Pretty-printer adds extra new-lines if line contains "(' ',' ')" #1297

Open
lheinold opened this issue Aug 28, 2024 · 0 comments
Open

Pretty-printer adds extra new-lines if line contains "(' ',' ')" #1297

lheinold opened this issue Aug 28, 2024 · 0 comments
Labels

Comments

@lheinold
Copy link

lnav version
v0.12.2 (same behavior in 0.10.1)

Describe the bug
When pretty printing a log (Shift + P), it will split the log into new lines if it contains the string (' ',' '). I have no idea why this is.

Example log:

[2024-08-28 13:39:23] test 1
[2024-08-28 13:39:23] test 2
[2024-08-28 13:39:23] the quick brown fox
[2024-08-28 13:39:23] this is a test (' ',' ') and another test
[2024-08-28 13:39:23] testing some more

Log after Shift+P:

[2024-08-28 13:39:23] test 1
[2024-08-28 13:39:23] test 2
[2024-08-28 13:39:23] the quick brown fox
[2024-08-28 13:39:23] this is a test (' ',
    ' '
) and another test
[2024-08-28 13:39:23] testing some more

I have no idea why lnav is adding newlines here, but it's really annoying because the actual log I am working on has a lot of lines with (' ',' '). If this is a feature, is there any way to to turn it off?

To Reproduce

  1. Create a file called test.log and paste the lines of the 'example log' above
  2. Run lnav test.log
  3. Press Shift + P
  4. See weird newlines added
@lheinold lheinold added the bug label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant