Xcode does not create a newline at end of file
| Originator: | edward | ||
| Number: | rdar://23480365 | Date Originated: | 10-Nov-2015 09:25 AM |
| Status: | Duplicate/9071980 Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7.1.1 7B1005 |
| Classification: | Enhancement | Reproducible: | Always |
While editing text files in Xcode, the files are easily created without a newline at the end of the file. According to POSIX standards, a newline should be at the end of every source file. git complains about there not being a newline. Also, it will make printing source files in the terminal cleaner as it will put the following prompt on the next line as opposed to the end of the output of the file.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!