From 2ba18d3c7a998fdb05c8b81759c2540f83b44bff Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 8 Nov 2015 17:29:43 -0500 Subject: [PATCH] Fix off-by-one error in the header underline. --- lib/common/user_interface.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.44.2