NomadNet icon indicating copy to clipboard operation
NomadNet copied to clipboard

Micron Text Justification Inconsistency

Open LinuxinaBit opened this issue 4 months ago • 1 comments

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: Image micron-parser-js output: Image

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

LinuxinaBit avatar Nov 12 '25 02:11 LinuxinaBit

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.

markqvist avatar Dec 07 '25 12:12 markqvist