]> gitweb.michael.orlitzky.com - mailshears.git/commitdiff
Fix off-by-one error in the header underline.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Nov 2015 22:29:43 +0000 (17:29 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Nov 2015 22:29:43 +0000 (17:29 -0500)
lib/common/user_interface.rb

index 00d3d7e52ddf649547503384301c304d613ad173..1bcf67ead3f7f37101e693092ed4d049924b7632 100644 (file)
@@ -42,7 +42,9 @@ class UserInterface
     end
 
     header += ' (Plugin: ' + plugin_name + ")\n"
-    header += '-' * header.size() # Underline the header.
+
+     # Underline the header, accounting for the newline.
+    header += '-' * (header.size() - 1)
 
     return header
   end