[
https://issues.apache.org/jira/browse/TINKERPOP-2522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17281293#comment-17281293
]
Stephen Mallette commented on TINKERPOP-2522:
---------------------------------------------
It would be nice if we could offer more control over how `profile()` output and
annotations could be pretty printed. If you have a fix for the
indentation/formatting please feel free to submit a PR for review with some
tests and examples that demonstrate the before and after formatting. Thanks!
> DefaultTraversalMetrics::toString does not indent annotations correctly
> -----------------------------------------------------------------------
>
> Key: TINKERPOP-2522
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2522
> Project: TinkerPop
> Issue Type: Bug
> Components: process
> Reporter: Boxuan Li
> Priority: Major
>
> In
> [https://github.com/apache/tinkerpop/blob/master/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversalMetrics.java#L255,]
> the indent parameter is not used when printing out annotations. That is, no
> matter what the indentation level is, annotations are always indented the
> same way. Looks like a bug to me.
> I noticed this behavior in
> [https://github.com/JanusGraph/janusgraph/pull/2410#issuecomment-770188509]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)