Commit:    8c52db690562683212a322d45b5f11ca36f86f0d
Author:    Peter Kokot <peterko...@gmail.com>         Wed, 17 Oct 2018 15:51:47 
+0200
Parents:   180dccfe9d47aee09f93c7cbfd144677e17b3380
Branches:  master

Link:       
http://git.php.net/?p=web/bugs.git;a=commitdiff;h=8c52db690562683212a322d45b5f11ca36f86f0d

Log:
Sync leading and final newlines

This patch adds missing newlines, trims multiple redundant final
newlines into a single one and trims leading newlines at the beginning
of the files.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] 
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2

Bugs:
https://bugs.php.net/2
https://bugs.php.net/5

Changed paths:
  M  include/trusted-devs.php
  M  sql/bugs.sql
  M  templates/search-rdf.php
  M  templates/search-rss2.php
  M  www/bugs-generating-backtrace-win32.php
  M  www/css/style.css
  M  www/js/jquery.cookie.js
  M  www/stats.php


Diff:
diff --git a/include/trusted-devs.php b/include/trusted-devs.php
index b7ced1f..5a04551 100644
--- a/include/trusted-devs.php
+++ b/include/trusted-devs.php
@@ -73,4 +73,3 @@ $security_developers = array(
 );
 
 $security_developers = array_merge($security_developers, 
$security_distro_people);
-
diff --git a/sql/bugs.sql b/sql/bugs.sql
index 05b1616..e7ad186 100644
--- a/sql/bugs.sql
+++ b/sql/bugs.sql
@@ -1,4 +1,3 @@
-
 -- ts1     bug created date
 -- ts2     bug last updated date
 -- passwd  user password
@@ -119,4 +118,3 @@ CREATE TABLE bugdb_pulls (
 # Default pseudo packages (common for all projects)
 INSERT INTO bugdb_pseudo_packages SET id = '1', parent = '0', name = 'Web 
Site',   long_name = 'Web Site',   project = '';
 INSERT INTO bugdb_pseudo_packages SET id = '2', parent = '1', name = 'Bug 
System', long_name = 'Bug System', project = '';
-
diff --git a/templates/search-rdf.php b/templates/search-rdf.php
index fa1edbc..68d3e93 100644
--- a/templates/search-rdf.php
+++ b/templates/search-rdf.php
@@ -70,4 +70,4 @@ echo <<< DATA
 {$items}
 DATA;
 ?>
-</rdf:RDF>
\ No newline at end of file
+</rdf:RDF>
diff --git a/templates/search-rss2.php b/templates/search-rss2.php
index a020684..f704302 100644
--- a/templates/search-rss2.php
+++ b/templates/search-rss2.php
@@ -22,4 +22,4 @@ if ($total_rows > 0) {
 }
 ?>
  </channel>
-</rss>
\ No newline at end of file
+</rss>
diff --git a/www/bugs-generating-backtrace-win32.php 
b/www/bugs-generating-backtrace-win32.php
index 18acf3d..ee15f67 100644
--- a/www/bugs-generating-backtrace-win32.php
+++ b/www/bugs-generating-backtrace-win32.php
@@ -97,4 +97,3 @@ selection.</p>
 <p>What we need is the backtrace itself which can be found under "Thread X - 
System ID XXX".</p>
 
 <?php response_footer();
-
diff --git a/www/css/style.css b/www/css/style.css
index 6c6d5da..d153e69 100644
--- a/www/css/style.css
+++ b/www/css/style.css
@@ -829,4 +829,4 @@ td.tbl-row-message {
 div.center {
        margin: 0px auto;
        width: 80%;
-}
\ No newline at end of file
+}
diff --git a/www/js/jquery.cookie.js b/www/js/jquery.cookie.js
index 6df1fac..79317f7 100644
--- a/www/js/jquery.cookie.js
+++ b/www/js/jquery.cookie.js
@@ -93,4 +93,4 @@ jQuery.cookie = function(name, value, options) {
         }
         return cookieValue;
     }
-};
\ No newline at end of file
+};
diff --git a/www/stats.php b/www/stats.php
index e05cef1..ec9cb2a 100644
--- a/www/stats.php
+++ b/www/stats.php
@@ -245,4 +245,3 @@ function display_stat_header($total, $grandtotal = true)
        $stat_head .= '</tr>' . "\n";
        return $stat_head;
 }
-


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to