Skip to content

Sanitize DOS (Windows) new line style on readme.txt#681

Merged
matiasbenedetto merged 2 commits intotrunkfrom
add/sanitize-dos-newlines
Jul 3, 2024
Merged

Sanitize DOS (Windows) new line style on readme.txt#681
matiasbenedetto merged 2 commits intotrunkfrom
add/sanitize-dos-newlines

Conversation

@matiasbenedetto
Copy link
Copy Markdown
Contributor

@matiasbenedetto matiasbenedetto commented Jul 3, 2024

What?

Replaces DOS new line style on readme.txt

Why?

This type of character causes problems on WordPress.org theme directory.

Reference from a theme review:

Both DOS and UNIX style line endings were found in the file readme.txt. This causes a problem with SVN repositories and must be corrected before the theme can be accepted.

Fixes #680

How?

The "\r\n" new line characters are replaced by the unix style new line character "\n" when creating or updating a readme.txt text.

Copy link
Copy Markdown
Member

@mikachan mikachan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing this! Code looks good to me and it's testing well. I think we can bring this in 🎉

@matiasbenedetto matiasbenedetto merged commit 082be0b into trunk Jul 3, 2024
@matiasbenedetto matiasbenedetto deleted the add/sanitize-dos-newlines branch July 3, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

The Theme Check plugin sometimes returns "Both DOS and UNIX style line endings" error

2 participants