Use utils get_node_text to get line content and trim all whitespaces.

This commit is contained in:
Kristijan Husak 2020-10-09 19:51:27 +02:00 committed by Kiyan Yazdani
parent 3aa7e575e2
commit 9ad47c65bd
2 changed files with 3 additions and 4 deletions

View file

@ -425,7 +425,7 @@ Default options (lua syntax):
{
indicator_size = 100,
type_patterns = {'class', 'function', 'method'},
transform_fn = function(line) return line:gsub('[%[%(%{]*%s*$', '') end,
transform_fn = function(line) return line:gsub('%s*[%[%(%{]*%s*$', '') end,
separator = ' -> '
}
<