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 2016/09/07 22:36:43 UTC

[4/5] tinkerpop git commit: Allow tabs in docs (replace them with 4 spaces prior pre-processing).

Allow tabs in docs (replace them with 4 spaces prior pre-processing).


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/7c39c1ca
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/7c39c1ca
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/7c39c1ca

Branch: refs/heads/master
Commit: 7c39c1ca2008c2b75247f8d568dba774169056a6
Parents: 114b00b
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Wed Sep 7 19:16:06 2016 +0200
Committer: Daniel Kuppitz <da...@hotmail.com>
Committed: Thu Sep 8 00:35:32 2016 +0200

----------------------------------------------------------------------
 docs/preprocessor/preprocess-file.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/7c39c1ca/docs/preprocessor/preprocess-file.sh
----------------------------------------------------------------------
diff --git a/docs/preprocessor/preprocess-file.sh b/docs/preprocessor/preprocess-file.sh
index 9c9a095..1069928 100755
--- a/docs/preprocessor/preprocess-file.sh
+++ b/docs/preprocessor/preprocess-file.sh
@@ -131,7 +131,8 @@ if [ ! ${SKIP} ] && [ $(grep -c '^\[gremlin' ${input}) -gt 0 ]; then
     mv .ext/plugins.txt ext/
   fi
 
-  awk -f ${AWK_SCRIPTS}/prepare.awk ${input} |
+  sed 's/\t/    /g' ${input} |
+  awk -f ${AWK_SCRIPTS}/prepare.awk |
   awk -f ${AWK_SCRIPTS}/init-code-blocks.awk -v TP_HOME="${TP_HOME}" PYTHONPATH="." |
   awk -f ${AWK_SCRIPTS}/progressbar.awk -v tpl=${AWK_SCRIPTS}/progressbar.groovy.template |
   HADOOP_GREMLIN_LIBS="${CONSOLE_HOME}/ext/giraph-gremlin/lib:${CONSOLE_HOME}/ext/tinkergraph-gremlin/lib" bin/gremlin.sh |