Micron Text Justification Inconsistency
Describe the Bug I noticed that entering justification tags in micron like so:
test1
`ctest2
test3
`ctest4
test5
`rtest6
test7
`rtest8
test9
results in two very different displays in NomadNet and micron-parser-js, see the screenshot section for examples. I decided to file this as an issue with NomadNet because NomadNet's handling of this situation is weirdly unpredictable.
To Reproduce
Set up a NomadNet page in micron using either the `c or `r tags on two separate lines, then observe the lines after the second tag being reset to the default justification in NomadNet but not in micron-parser-js.
Expected Behavior
Since `a already exists to reset line centering, I believe micron-parser-js does this more sensibly, since because of `a there's no need for NomadNet to reset line centering if `l, `c, or `r are entered twice.
Logs & Screenshots
NomadNet output:
micron-parser-js output:
System Information
- OS and version: Solus 4.7 Endurance, Budgie DE
- Python version: Python 3.12.11
- Program version: NomadNet Version 0.9.1
Additional context If you believe this is not an issue with NomadNet, I will move this to be an issue with micron-parser-js
Yes, this is an inconsistency we need to fix. The approach in micron-parser is indeed more sensible, as it is more explicit and avoids strange scenarios where alignment flips back and forth. I will change the nomadnet parser implementation to work this way as well.