From: Michael Orlitzky Date: Sun, 8 Nov 2015 22:29:43 +0000 (-0500) Subject: Fix off-by-one error in the header underline. X-Git-Tag: 0.0.1~3 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=2ba18d3c7a998fdb05c8b81759c2540f83b44bff;p=mailshears.git Fix off-by-one error in the header underline. --- diff --git a/lib/common/user_interface.rb b/lib/common/user_interface.rb index 00d3d7e..1bcf67e 100644 --- a/lib/common/user_interface.rb +++ b/lib/common/user_interface.rb @@ -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