Fixing the line endings

Hello,

I think I’ve worked out how to fix the problem we encounter periodically
with line endings.

I’m going to test it on Windows tomorrow and if it does the right thing
(uses CR/LF line endings on Windows but stores files with LF line
endings), then I’ll push the update.

The update, FYI, is to add a .gitattributes file that tells git what to
do with text and binary files.

I will then push an update to these files that “fixes” their line
endings.

.editorconfig
etc/REC-xml-20001006.xml
gradlew.bat
specifications/xpath-datamodel-40/style/data-model.xsl
specifications/xpath-datamodel-40/style/dm-example.tbl.xsl
specifications/xslt-xquery-serialization-40/style/serialization-diff.xsl
style/xmlspec-override.xsl
style/xquery-requirements.xsl

And, finally, here is the .gitattributes file I constructed by
semi-mechanically reviewing what is currently in the repo:

* text=auto

# Known to be text
*.xml text
*.h text
*.bat text
*.css text
*.dtd text
*.ent text
*.html text
*.java text
*.jflex text
*.mod text
*.properties text
*.rdf text
*.rnc text
*.sh text
*.svg text
*.text text
*.txt text
*.xquery text
*.xqueryx text
*.xsd text
*.xsl text

# Known to be binary
*.bin binary
*.doc binary
*.exe binary
*.gif binary
*.gz binary
*.jar binary
*.jpg binary
*.pdf binary
*.png binary

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Monday, 30 October 2023 16:24:43 UTC