Jeroen Demeyer on Fri, 27 Feb 2015 10:43:46 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

gphelp: Don't print escape code in raw mode


When running gphelp -raw, there should be no escape code at the end, see patch.
commit d1af862d04e27179b518a92fe110d59b48c9205f
Author: Jeroen Demeyer <jdemeyer@cage.ugent.be>
Date:   Fri Feb 27 10:42:27 2015 +0100

    Do not print escape code in raw mode

diff --git a/doc/gphelp.in b/doc/gphelp.in
index 48ee43c..889fb5c 100755
--- a/doc/gphelp.in
+++ b/doc/gphelp.in
@@ -72,7 +72,7 @@ cleanexit();
 # Procedures
 #
 sub cleanexit {
-  print "\e[0m" unless $to_pod;
+  print "\e[0m" unless $raw or $to_pod;
   exit 0;
 }