Opened 6 years ago
Closed 4 years ago
#52769 closed defect (bug) (duplicate)
Theme Editor changes line endings of edited files
| Reported by: | diegoe | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 5.7 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
Description
If you have a theme, like twentyseventeen, that for whatever reason has CRLF newlines in its files, the Theme Editor will change the file format to regular unix newlines when saving.
This creates confusing diffs, since by default diff does *not* ignore the newline characters. You can work around that with diff --strip-trailing-cr, but it's a rather obscure bit of trivia, even if you "know enough" to be using diff.
I think the Theme Editor shouldn't change the file newline format of the edited files.
Change History (2)
#2
@
4 years ago
- Component General → Administration
- Milestone Awaiting Review
- Resolution → duplicate
- Status new → closed
Hi there, welcome back to WordPress Trac!
Thanks for the ticket, sorry it took a while for someone to get back to you.
#9716 has a patch that should resolve this, so let's continue there.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related/duplicate: #9716