Skip to content

Conversation

@JudahJL
Copy link

@JudahJL JudahJL commented Dec 2, 2025

Without this fix, crash log files were not being processed at all due to incorrect newline detection. The read_file() method failed to identify section markers when line endings differed from expected format.

  • Add get_line_ending() to preserve original line endings (CRLF/LF/CR)
  • Refactor read_file() to use splitlines(keepends=True) for proper parsing
  • Update add_name() to preserve line endings instead of forcing \n
  • Handle all line ending variants for PROBABLE CALL STACK and REGISTERS markers

Without this fix, crash log files were not being processed at all due
to incorrect line ending detection. The read_file() method failed to
identify section markers when line endings differed from expected format.

- Add get_line_ending() to preserve original line endings (CRLF/LF/CR)
- Refactor read_file() to use splitlines(keepends=True) for proper parsing
- Update add_name() to preserve line endings instead of forcing \n
- Handle all line ending variants for PROBABLE CALL STACK and REGISTERS markers
@JudahJL JudahJL changed the title Fix line ending handling Fix new line handling in crash logs Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant