Skip to content

Trim lines when reading mrt note to deal with extra spaces#7

Merged
Reloe merged 1 commit intoReloe:mainfrom
PozayLol:main
Jul 29, 2025
Merged

Trim lines when reading mrt note to deal with extra spaces#7
Reloe merged 1 commit intoReloe:mainfrom
PozayLol:main

Conversation

@PozayLol
Copy link
Copy Markdown

Fix for extra space breaking everything. For example, having a note like:

intstart 
... // Interrupt assignments here
intend

will not work, because of the extra space after intstart. The idea here is to trim every line (instead of just the note, as is done on line 111) to resolve all such issue.

Another solution would be to instead match "intstart" and "intend", but not really sure how efficient that is in LUA / went with easier solution.

@PozayLol PozayLol marked this pull request as draft July 28, 2025 19:30
@PozayLol
Copy link
Copy Markdown
Author

Oops just realized auto-formatter hit a bunch of random lines (extra spaces at the end of lines funnily enough), I can remove if it's problematic, only important change is line added line 113

@PozayLol PozayLol marked this pull request as ready for review July 28, 2025 19:32
@Reloe Reloe merged commit f41c1a0 into Reloe:main Jul 29, 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.

3 participants