Browse Source

Make formatting work for values with spaces

Alois Mahdal 6 years ago
parent
commit
204b6d0596
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/stub

+ 2
- 1
src/stub View File

@@ -644,7 +644,8 @@ reformat_section() {
644 644
         }
645 645
         echo "$key = $value"
646 646
     done \
647
-      | column -to' ' \
647
+      | sed 's/ *= */=/; s/^ *//; s/ *$//' \
648
+      | column -t -s= -o' = ' \
648 649
       | sed 's/^/    /'
649 650
 }
650 651