Changeset 31896


Ignore:
Timestamp:
08/17/17 14:48:04 (3 years ago)
Author:
kjdon
Message:

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

File:
1 edited

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) {
Note: See TracChangeset for help on using the changeset viewer.