You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2018/10/23 20:42:26 UTC

[tinkerpop] branch TINKERPOP-2002 updated: fixed tab sort order

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

dkuppitz pushed a commit to branch TINKERPOP-2002
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/TINKERPOP-2002 by this push:
     new 2b12d00  fixed tab sort order
2b12d00 is described below

commit 2b12d0014772e8eda4683555f57d0929a03619ce
Author: Daniel Kuppitz <da...@hotmail.com>
AuthorDate: Tue Oct 23 13:42:20 2018 -0700

    fixed tab sort order
---
 docs/preprocessor/awk/tabify.awk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/preprocessor/awk/tabify.awk b/docs/preprocessor/awk/tabify.awk
index 28e7cf6..e608be4 100644
--- a/docs/preprocessor/awk/tabify.awk
+++ b/docs/preprocessor/awk/tabify.awk
@@ -26,14 +26,14 @@ function print_tabs(next_id, tabs, blocks) {
   print "++++"
   print "<section class=\"tabs tabs-" num_tabs "\">"
 
-  for (i in tabs) {
+  for (i = 1; i <= num_tabs; i++) {
     title = tabs[i]
     print "  <input id=\"tab-" id_part "-" x "\" type=\"radio\" name=\"radio-set-" id_part "-" next_id "\" class=\"tab-selector-" i "\"" (i == 1 ? " checked=\"checked\"" : "") " />"
     print "  <label for=\"tab-" id_part "-" x "\" class=\"tab-label-" i "\">" title "</label>"
     x++
   }
 
-  for (i in blocks) {
+  for (i = 1; i<= num_tabs; i++) {
     print "  <div class=\"tabcontent\">"
     print "    <div class=\"tabcontent-" i "\">"
     print "++++\n"