Changeset 31896

Show
Ignore:
Timestamp:
17.08.2017 14:48:04 (5 weeks ago)
Author:
kjdon
Message:

let properties files have \n and \t in them to represent newlines and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/gsprintf.pm

    r31860 r31896  
    141141    return $stringkey; 
    142142    } 
     143    # we allow \n and \t as newlines and tabs. 
     144    $utf8string =~ s@([^\\])\\n@$1\n@g; 
     145    $utf8string =~ s@([^\\])\\t@$1\t@g; 
     146    $utf8string =~ s@\\\\@\\@g; 
    143147     
    144148    if ($native_perl ==1) {