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

Place chat messages each on their own line #17

Open
FRC-Bunnyhug opened this issue Apr 29, 2024 · 2 comments
Open

Place chat messages each on their own line #17

FRC-Bunnyhug opened this issue Apr 29, 2024 · 2 comments

Comments

@FRC-Bunnyhug
Copy link

Could the program be updated to place all chat messages on their own line instead of all on the same line? It would help with parsing all of my rotated logs in a terminal.

The logs look great when opened in a Web Browser, but I often parse all of them for historical reasons with a single command and having everything on one line makes it a bit messy.

@FRC-Bunnyhug
Copy link
Author

FRC-Bunnyhug commented May 1, 2024

For anyone else wishing this feature, I came up with a simple sed script:

$ for x in *.html ; do sed 's/<br \/>/<br \/>\
/g' ${x} > lined/${x} ; mv ${x} orig_backup/ ; done

Make the directories "lined" and "orig_backup" within your rotated logs folder first. This script replaces each <br /> with <br />[newline] while making fixed version copies of each log file into the "lined/" directory and then moving the originals to "orig_backup".

@voc0der
Copy link
Owner

voc0der commented May 1, 2024

Thanks for adding that!

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

No branches or pull requests

2 participants