From 2704024afcb5d478f54694547119c260aae360fa Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Tue, 27 Jan 2015 10:49:27 +0100 Subject: [PATCH] fix other missing escapes --- library/types/src/modules/String.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/types/src/modules/String.rb b/library/types/src/modules/String.rb index 5b0275f21..8cfe90e71 100644 --- a/library/types/src/modules/String.rb +++ b/library/types/src/modules/String.rb @@ -44,7 +44,7 @@ def main @calnum = Ops.add(@calpha, @cdigit) @cpunct = "!\"\#$%&'()*+,-./:;<=>?@[\\]^_`{|}~" @cgraph = Ops.add(@calnum, @cpunct) - @cspace = "\f\r\n\t\013" + @cspace = "\f\r\n\t\v" @cprint = Ops.add(@cspace, @cgraph) # 64 characters is the base undeline length @@ -491,14 +491,14 @@ def ParseOptions(options, parameters) # backslah sequences backslash_seq = { - "a" => "a", # alert + "a" => "\a", # alert "b" => "\b", # backspace - "e" => "e", # escape + "e" => "\e", # escape "f" => "\f", # FF "n" => "\n", # NL - "r" => "\b", # CR + "r" => "\r", # CR "t" => "\t", # tab - "v" => "v", # vertical tab + "v" => "\v", # vertical tab "\\" => "\\" } # backslash