Skip to content

Doc: Ensure LF line-endings#14168

Closed
geographika wants to merge 2 commits into
OSGeo:masterfrom
geographika:crlf
Closed

Doc: Ensure LF line-endings#14168
geographika wants to merge 2 commits into
OSGeo:masterfrom
geographika:crlf

Conversation

@geographika
Copy link
Copy Markdown
Collaborator

Ensure LF for cookbook doc.

Adds a new action to check for CRLF, configured to just check RST files.
There are 112 files with CRLF - see https://github.com/geographika/gdal/actions/runs/23262079608/job/67632989090.
Most are data or Windows-related files.

@geographika geographika mentioned this pull request Mar 18, 2026
@dbaston
Copy link
Copy Markdown
Member

dbaston commented Mar 18, 2026

Rather than adding another CI job, what about adding the following line to the existing "Lint .rst files" section of "doc_checks.yml" ?

if find . -name '*.rst' | xargs grep -P "\r$"; then echo 'Windows line breaks detected'; false; fi

@geographika
Copy link
Copy Markdown
Collaborator Author

@dbaston - I'll use that approach. Closing.

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

Successfully merging this pull request may close these issues.

2 participants