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

Formatting: negative numbers in red #34

Closed
andreas-mausch opened this issue Jul 3, 2023 · 3 comments
Closed

Formatting: negative numbers in red #34

andreas-mausch opened this issue Jul 3, 2023 · 3 comments

Comments

@andreas-mausch
Copy link

It would be great to have an option for a different formatting if a number value is negative.

image

Here is an example in Kotlin using odfdom:
https://github.com/andreas-mausch/haspa-camt052-to-csv/blob/00097d577ec02b09020007a1cbcdb37374ce3d18/haspa-parser.kts#L234-L257

@thscharler
Copy link
Owner

I think it should be possible. Will look into it at the weekend.

@thscharler
Copy link
Owner

I add example/negative_number_red.rs with a solution.

I'm publishing 0.16 for this, because of course there still was a bug.

@thscharler
Copy link
Owner

done

andreas-mausch added a commit to andreas-mausch/haspa-camt052-to-csv that referenced this issue Dec 16, 2023
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