Skip to content

Commit b4ad97d

Browse files
committed
Remove force set require-final-newline to nil
Generally, there is no need to be afraid of newlines at the end of PHP files.
1 parent 4f55f10 commit b4ad97d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

php-mode.el

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,12 +1200,6 @@ After setting the stylevars run hooks according to STYLENAME
12001200
;; PHP vars are case-sensitive
12011201
(setq case-fold-search t)
12021202

1203-
;; Do not force newline at end of file. Such newlines can cause
1204-
;; trouble if the PHP file is included in another file before calls
1205-
;; to header() or cookie().
1206-
(set (make-local-variable 'require-final-newline) nil)
1207-
(set (make-local-variable 'next-line-add-newlines) nil)
1208-
12091203
(php-set-style (symbol-name php-mode-coding-style))
12101204

12111205
(when (or php-mode-force-pear

0 commit comments

Comments
 (0)