# Let Git auto-detect text files
* text=auto

# LaTeX/BibTeX fixtures and corpus must use LF so formatter output (always LF)
# and losslessness/snapshot assertions match on every platform, including Windows.
tests/fixtures/**/*.tex eol=lf
tests/fixtures/**/*.bib eol=lf
tests/fixtures/**/*.sty eol=lf
tests/fixtures/**/*.cls eol=lf
tests/fixtures/**/*.dtx eol=lf
tests/fixtures/**/*.ins eol=lf
tests/corpus/** eol=lf

# Snapshot files should always use LF
tests/**/snapshots/**/* eol=lf
tests/snapshots/**/* eol=lf

# Generated signature data is compared byte-for-byte by its generator's check mode.
data/cwl_signatures.json eol=lf

# Preserve line-ending fixtures as-is (CRLF/LF) once they exist.
tests/fixtures/**/crlf_*/* -text
tests/fixtures/**/lf_*/* -text
tests/fixtures/**/*_crlf_*/* -text
tests/fixtures/**/*_lf_*/* -text
