Imagine that we want to format the following query with a max line length of 40:
List<Vertex> people = g.V().hasLabel("person").toList();
The expected result would be:
List<Vertex> people = g.V().
hasLabel("person").
toList();
Instead it is formatted like this:
List<Vertex> people = g.V().hasLabel("person").toList();
The problem is that when determining if the first line of the query should wrap, the fact that the query does not start at the beginning of the line is not taken into account.
Imagine that we want to format the following query with a max line length of 40:
The expected result would be:
Instead it is formatted like this:
The problem is that when determining if the first line of the query should wrap, the fact that the query does not start at the beginning of the line is not taken into account.