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 2015/06/08 21:00:58 UTC

incubator-tinkerpop git commit: filter out WARN messages in code samples

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master 0f4b2ed1c -> d84c85a04


filter out WARN messages in code samples


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

Branch: refs/heads/master
Commit: d84c85a04461a9bbec380d19f484b4b81ab604ff
Parents: 0f4b2ed
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Mon Jun 8 21:00:30 2015 +0200
Committer: Daniel Kuppitz <da...@hotmail.com>
Committed: Mon Jun 8 21:00:30 2015 +0200

----------------------------------------------------------------------
 docs/preprocessor/awk/cleanup.awk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/d84c85a0/docs/preprocessor/awk/cleanup.awk
----------------------------------------------------------------------
diff --git a/docs/preprocessor/awk/cleanup.awk b/docs/preprocessor/awk/cleanup.awk
index b7af8dd..7057b32 100644
--- a/docs/preprocessor/awk/cleanup.awk
+++ b/docs/preprocessor/awk/cleanup.awk
@@ -26,7 +26,11 @@
     if (!evaluated || $0 !~ /^gremlin> [']?:/) {
       if (evaluated && $0 ~ /^==>:/) gsub(/^==>/, "gremlin> ")
       if (!evaluated || $0 == "==>----") gsub(/^==>/, "")
-      if (evaluated || ($0 !~ /^gremlin> pb\([0-9]*\); / && $0 !~ /^gremlin> $/)) print
+      if (evaluated) {
+        if ($0 !~ /^WARN /) print
+      } else if ($0 !~ /^gremlin> pb\([0-9]*\); / && $0 !~ /^gremlin> $/) {
+        print
+      }
     }
   }
 }