ForNeVeR / xaml-math

A collection of .NET libraries for rendering mathematical formulae using the LaTeX typesetting style, for the WPF and Avalonia XAML-based frameworks
MIT License
641 stars 102 forks source link

.gitattributes: text=auto #330

Closed ForNeVeR closed 1 year ago

ForNeVeR commented 1 year ago

Without this change, files get weirdly mangled on checking them out, git rebase and whatnot.

Initially, I got this version of .gitattributes from this comment on GitHub checkout Action repository.

Why have I even introduced this? Because I've decided we want to keep the line endings as \n (otherwise, they themselves get occasionally messed up by myself and other contributors). And then I found that GitHub Actions check out the repository with autocrlf=true on Windows. To avoid that, I wanted to do an equivalent of core.autocrlf=input, and took the advice from the aforementioned comment.

I was wrong, and I hope the problem gets fixed by this.

ForNeVeR commented 1 year ago

An example of how things got messed up you can see in PR https://github.com/ForNeVeR/wpf-math/pull/329: as you can see, .ttf and .png files become several bytes lesser, perhaps because a stray \r\n was found by Git somewhere there.