You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wayang.apache.org by be...@apache.org on 2021/02/22 05:26:04 UTC

[incubator-wayang-website] 25/37: issue with display of number

This is an automated email from the ASF dual-hosted git repository.

bertty pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-wayang-website.git

commit bbe4c1b20844afbee4611d066da331dca050bf8c
Author: Bertty Contreras-Rojas <be...@scalytics.io>
AuthorDate: Mon Feb 15 01:38:08 2021 -0300

    issue with display of number
---
 assets/js/add_numbers.js | 2 +-
 documentation.md         | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/assets/js/add_numbers.js b/assets/js/add_numbers.js
index 3957412..8bf6ffa 100644
--- a/assets/js/add_numbers.js
+++ b/assets/js/add_numbers.js
@@ -1,7 +1,7 @@
 (function() {
     var pre = document.getElementsByTagName('pre'),
         pl = pre.length;
-    for (var i = 0; i < pl-1; i++) {
+    for (var i = 0; i < pl; i++) {
         pre[i].innerHTML = '<span class="line-number"></span>' + pre[i].innerHTML + '<span class="cl"></span>';
         var num = pre[i].innerHTML.split(/\n/).length;
         for (var j = 0; j < num-1; j++) {
diff --git a/documentation.md b/documentation.md
index b424af7..096bc2f 100644
--- a/documentation.md
+++ b/documentation.md
@@ -274,6 +274,7 @@ object WordcountScala {
 Apache Wayang is also capable of iterative processing, which is, e.g., very important for machine learning algorithms, such as k-means.
 
 #### Scala API
+
 ```scala
 import org.apache.wayang.api._
 import org.apache.wayang.core.api.{Configuration, WayangContext}