You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/03 05:32:13 UTC

svn commit: r1864306 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/unified.js wizard.js

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;