community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864086 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/primer.js wizard.js
Date Wed, 31 Jul 2019 16:23:09 GMT
Author: humbedooh
Date: Wed Jul 31 16:23:09 2019
New Revision: 1864086

URL: http://svn.apache.org/viewvc?rev=1864086&view=rev
Log:
strip trailing newlines from each section

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js?rev=1864086&r1=1864085&r2=1864086&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/primer.js Wed Jul 31 16:23:09 2019
@@ -135,7 +135,7 @@ function compile_report() {
         let step = step_json[i];
         rep += "\n## %s:\n".format(step.description);
         if (report[i] !== null) {
-            rep += report[i];
+            rep += report[i].replace(/(\r?\n)+$/, '');
         } else {
             rep += "Nothing to note...\n";
         }

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864086&r1=1864085&r2=1864086&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Wed Jul 31 16:23:09 2019
@@ -1296,7 +1296,7 @@ function compile_report() {
         let step = step_json[i];
         rep += "\n## %s:\n".format(step.description);
         if (report[i] !== null) {
-            rep += report[i];
+            rep += report[i].replace(/(\r?\n)+$/, '');
         } else {
             rep += "Nothing to note...\n";
         }



Mime
View raw message