Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flexible tree indent size #11

Merged
merged 1 commit into from
Jul 15, 2020
Merged

Flexible tree indent size #11

merged 1 commit into from
Jul 15, 2020

Conversation

yfuruyama
Copy link
Contributor

Changed to allow users to configure tree indent size via IndentSize variable.

This would be needed when we use a custom edge type like this.

+- one
|  +- two
+- foo
   +- bar
   |  +- a
   |  +- b
   |  +- c
   +- end

@@ -55,8 +55,8 @@ func TestLevel(t *testing.T) {
actual := tree.String()
expected := `.
├── hello
│   ├── my friend
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this had a non-breaking space character (\u00a0). I didn't tell the reason why the special character was used, so I changed to the normal space character.

If it was intentional to use the \u00a0, I will revert these changes.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was following tree utility output, but it's actually strange and unpredictable so let's fallback to normal spaces :)

Screenshot 2020-07-15 at 17 11 35

@yfuruyama
Copy link
Contributor Author

@xlab Could you take a look?

@@ -55,8 +55,8 @@ func TestLevel(t *testing.T) {
actual := tree.String()
expected := `.
├── hello
│   ├── my friend
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was following tree utility output, but it's actually strange and unpredictable so let's fallback to normal spaces :)

Screenshot 2020-07-15 at 17 11 35

@xlab xlab merged commit 51a709f into xlab:master Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants