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

Add line separator attribute (CRLF) #118

Open
Nikzed opened this issue Oct 11, 2023 · 4 comments
Open

Add line separator attribute (CRLF) #118

Nikzed opened this issue Oct 11, 2023 · 4 comments

Comments

@Nikzed
Copy link

Nikzed commented Oct 11, 2023

We've been coding a lot on my current job, and came to agreement to make all files in CRLF line separators, since this is more fitable for our project.

I have a problem with persistent appearing in commit window with generated files
image
where the only difference seem to be only in separators
image
how can we change it from being generated in LF to CRLF?

@Lochinor
Copy link

Lochinor commented Oct 25, 2024

I add eol config, https://github.com/Lochinor/intl_utils
you can delete .pub-cache\global_packages\intl_utils\bin\generate.dart-3.5.3.snapshot
them replace libs files at .pub-cache\hosted\pub.dev\intl_utils-2.8.7
last add eol: 'CRLF' after flutter_intl like this:
image

Lochinor added a commit to Lochinor/intl_utils that referenced this issue Oct 26, 2024
@Lochinor
Copy link

Lochinor commented Oct 29, 2024

Simple Used:

dev_dependencies:
  intl_utils:
    git:
      url: https://github.com/Lochinor/intl_utils.git

run command

dart run intl_utils:generate

@Nikzed
Copy link
Author

Nikzed commented Oct 29, 2024

@Lochinor can you please submit a pull request on that?

@Lochinor
Copy link

Lochinor commented Oct 30, 2024

This PR
#134
It hasn't been updated for a long time.

also you can use by build style.
https://github.com/Lochinor/intl_gen

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