Author: humbedooh
Date: Sat Aug 31 02:28:18 2019
New Revision: 1866176

URL: http://svn.apache.org/viewvc?rev=1866176&view=rev
Log:
don't highlight last newline, causes CSS weirdness

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/unified.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.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=1866176&r1=1866175&r2=1866176&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 
31 02:28:18 2019
@@ -48,7 +48,7 @@ function UnifiedEditor_highlight_section
         
         // Sections are marked light green
         hilites.push({
-            highlight: additional_text,
+            highlight: additional_text.replace(/\r?\n$/, ''),
             className: color
             });
     }

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js
URL: 
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js?rev=1866176&r1=1866175&r2=1866176&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard-beta.js Sat Aug 31 
02:28:18 2019
@@ -3338,7 +3338,7 @@ function UnifiedEditor_highlight_section
         
         // Sections are marked light green
         hilites.push({
-            highlight: additional_text,
+            highlight: additional_text.replace(/\r?\n$/, ''),
             className: color
             });
     }


Reply via email to