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

Cole-Greer pushed a commit to branch docs-3.7
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit b22325387c06b54ca02c422538e7dc6b895228ac
Author: Cole Greer <[email protected]>
AuthorDate: Tue May 26 18:08:17 2026 -0700

    Fix multi-line statement echo: skip continuation prompts in results
    
    For multi-line statements, the console echoes all lines with
    continuation prompts (......N>) before the actual results. Previously
    only the first echo line was skipped, leaving continuation prompts in
    the output and making it appear the block had no results. Now skips
    all lines matching the continuation prompt pattern.
---
 .../java/org/apache/tinkerpop/gremlin/docs/GremlinTreeprocessor.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/tools/tinkerpop-docs/src/main/java/org/apache/tinkerpop/gremlin/docs/GremlinTreeprocessor.java
 
b/tools/tinkerpop-docs/src/main/java/org/apache/tinkerpop/gremlin/docs/GremlinTreeprocessor.java
index 2ab4e73141..9a98a91ff4 100644
--- 
a/tools/tinkerpop-docs/src/main/java/org/apache/tinkerpop/gremlin/docs/GremlinTreeprocessor.java
+++ 
b/tools/tinkerpop-docs/src/main/java/org/apache/tinkerpop/gremlin/docs/GremlinTreeprocessor.java
@@ -491,8 +491,9 @@ public class GremlinTreeprocessor extends Treeprocessor {
                 final String result = executeSafely(execStatements.get(s));
                 if (result != null && !result.isEmpty()) {
                     final String[] resultLines = result.split("\\r?\\n");
-                    // Skip the first line which is the echo of the command
+                    // Skip echo lines (first line + continuation prompts like 
......N>)
                     for (int idx = 1; idx < resultLines.length; idx++) {
+                        if (resultLines[idx].matches("^\\.{6}\\d+>.*")) 
continue;
                         output.append(resultLines[idx]).append("\n");
                     }
                 }

Reply via email to