about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-17 20:47:50 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:19 -0500
commiteec309f9dc366ac73d5c74d0da7ec087c70a51c9 (patch)
tree08069e326ba00cb471357c04cf236b38ab37caa8 /app/lib
parentd3392a295cc7d1a6b7e7555e585437d9d76b51c2 (diff)
[Command Tags] Remove flanking blank space from footer
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/command_tag/command/footer_tools.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/command_tag/command/footer_tools.rb b/app/lib/command_tag/command/footer_tools.rb
index 162b66d85..2fada5a1d 100644
--- a/app/lib/command_tag/command/footer_tools.rb
+++ b/app/lib/command_tag/command/footer_tools.rb
@@ -17,12 +17,12 @@ module CommandTag::Command::FooterTools
     if name == 'default'
       name = normalize(args.shift)
       var_name = "persist:footer:#{name}"
-      @vars[var_name] = [args.join(' ')] if args.present?
+      @vars[var_name] = [args.join(' ').strip] if args.present?
       @vars['persist:footer:default'] = var(var_name)
     elsif %w(default DEFAULT).include?(args[0])
       @vars['persist:footer:default'] = var(var_name)
     else
-      @vars[var_name] = [args.join(' ')]
+      @vars[var_name] = [args.join(' ').strip]
     end
 
     @status.footer = var(var_name)[0]
@@ -33,4 +33,4 @@ module CommandTag::Command::FooterTools
   alias handle_sig_before_save          handle_footer_before_save
   alias handle_am_before_save           handle_footer_before_save
   alias handle_are_before_save          handle_footer_before_save
-end
\ No newline at end of file
+end