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 21:56:36 UTC
[2/2] tinkerpop git commit: Simplified the pre-processor's prettify
script.
Simplified the pre-processor's prettify script.
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/3623e82b
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/3623e82b
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/3623e82b
Branch: refs/heads/hasStepFix
Commit: 3623e82b957586d8545af843385f5469b9e7ea43
Parents: 7103394
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Wed Sep 7 23:54:50 2016 +0200
Committer: Daniel Kuppitz <da...@hotmail.com>
Committed: Wed Sep 7 23:54:50 2016 +0200
----------------------------------------------------------------------
docs/preprocessor/awk/prettify.awk | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/3623e82b/docs/preprocessor/awk/prettify.awk
----------------------------------------------------------------------
diff --git a/docs/preprocessor/awk/prettify.awk b/docs/preprocessor/awk/prettify.awk
index f115ec5..cbaa12f 100644
--- a/docs/preprocessor/awk/prettify.awk
+++ b/docs/preprocessor/awk/prettify.awk
@@ -21,14 +21,8 @@
/^==>\/\/\/\/$/ { doPrint = 1 }
{
- lastLineStartedWithGremlin = lastLineStartedWithGremlin && inCodeSection
- if (inCodeSection) {
- if ($0 ~ /^gremlin> / && ($0 ~ /([.,({]|""")(\s*\/\/.*)?$/ || $0 ~ /^gremlin> /)) {
- if (lastLineStartedWithGremlin) gsub(/^gremlin> /, " ")
- lastLineStartedWithGremlin = 1
- } else {
- lastLineStartedWithGremlin = 0
- }
+ if (inCodeSection && $0 ~ /^\.*[0-9]+> /) {
+ gsub(/^.{8}/, " ")
}
if (doPrint) print
}