community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864306 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/unified.js wizard.js
Date Sat, 03 Aug 2019 05:32:13 GMT
Author: humbedooh
Date: Sat Aug  3 05:32:12 2019
New Revision: 1864306

URL: http://svn.apache.org/viewvc?rev=1864306&view=rev
Log:
double-line if no newline at end, otherwise single-line after a section

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

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js?rev=1864306&r1=1864305&r2=1864306&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js Sat Aug  3 05:32:12
2019
@@ -183,7 +183,7 @@ function UnifiedEditor_reset() {
             } else {
                 this.report += PLACEHOLDER;
             }
-            this.report += "\n\n";
+            this.report += this.report[this.report.length-1] == '\n' ? '\n' : "\n\n";
         }
     }
     this.object.value = this.report;

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=1864306&r1=1864305&r2=1864306&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Sat Aug  3 05:32:12 2019
@@ -2098,7 +2098,7 @@ function UnifiedEditor_reset() {
             } else {
                 this.report += PLACEHOLDER;
             }
-            this.report += "\n\n";
+            this.report += this.report[this.report.length-1] == '\n' ? '\n' : "\n\n";
         }
     }
     this.object.value = this.report;



Mime
View raw message