mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix leading whitespace with root group
This commit is contained in:
parent
98f886d9d4
commit
0190cc7260
1 changed files with 3 additions and 2 deletions
|
@ -54,8 +54,9 @@ module Spectator
|
|||
|
||||
# Add padding between the node names
|
||||
# only if the names don't appear to be symbolic.
|
||||
io << ' ' unless group.name.is_a?(Symbol) && name.is_a?(String) &&
|
||||
(name.starts_with?('#') || name.starts_with?('.'))
|
||||
io << ' ' unless !group.name? || # Skip blank group names (like the root group).
|
||||
(group.name?.is_a?(Symbol) && name.is_a?(String) &&
|
||||
(name.starts_with?('#') || name.starts_with?('.')))
|
||||
end
|
||||
|
||||
io << name
|
||||
|
|
Loading…
Reference in a new issue