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

[feature] Option to configure line breaks #1948

Closed
NebelNidas opened this issue Jul 10, 2023 · 1 comment
Closed

[feature] Option to configure line breaks #1948

NebelNidas opened this issue Jul 10, 2023 · 1 comment
Assignees
Labels
Core Issues in jadx-core module new feature
Milestone

Comments

@NebelNidas
Copy link
Contributor

Currently, JADX hardcodes the the system default for line breaks. In certain situations, it may be desirable to define a specific one though. This is something I wouldn't necessarily expose via JadxArgs, but it should be possible to overwrite the default value in ICodeWriter by using a custom implementation thereof. If you could change NL from being a field to an interface method, like nl(), which can be overridden, that would be much appreciated.

@skylot
Copy link
Owner

skylot commented Apr 8, 2024

Done, now it is possible to set new line string in JadxArgs:

args.setCodeNewLineStr("\n");

@skylot skylot closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Issues in jadx-core module new feature
Projects
None yet
Development

No branches or pull requests

2 participants