-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
EBNFUnitFormat can not handle chain of TransformedUnit #406
Comments
Please note that the local formatter is implemented similarly. Maybe some redundant stuff can be merged. |
Thanks, could you try, how |
Result:
The UCUM formatter seems to handle that nicely. I tried my suggested fix for the EBNF stuff and it works fine in my initial tests, but I'm too lazy to apply for a JCP/JSR membership just for creating a PR. But my fix is only to set the parentUnit to the parent unit in the case of a transformed unit + deleting the workaround stuff in that section (hopefully there are unit tests which cover them, but the unit tests work as without the fix). |
Thanks for trying. As they all use resource bundles underneath the hood, there could be some inspiration or patch based on |
result: m·2
I guess the reason for that is that EBNFHelper.formatInternal is using "parentUnit = unit.getSystemUnit()" instead of the direct parent in the last else block for handling transformed units.
Maybe changing that would also make all the dirty hacks in that section obsolete.
The text was updated successfully, but these errors were encountered: