summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanthosh Thottingal <santhosh.thottingal@gmail.com>2009-07-19 18:20:26 +0530
committerSanthosh Thottingal <santhosh.thottingal@gmail.com>2009-07-19 18:20:26 +0530
commita6ec66bcd94b6ab7b1a0aeee5fabb4dbdf7ed50e (patch)
treebb6e6c66339d81b68042ded616b408ea0bfe789f
parent3865722850f890c993fb34446404f8f026ba762f (diff)
downloadAnjaliOldLipi.git-a6ec66bcd94b6ab7b1a0aeee5fabb4dbdf7ed50e.tar.gz
AnjaliOldLipi.git-a6ec66bcd94b6ab7b1a0aeee5fabb4dbdf7ed50e.tar.xz
AnjaliOldLipi.git-a6ec66bcd94b6ab7b1a0aeee5fabb4dbdf7ed50e.zip
FIX : Spaces in mapping file cause the program fail
-rwxr-xr-xpayyans/payyans/payyan.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/payyans/payyans/payyan.py b/payyans/payyans/payyan.py
index bebb989..2ec4794 100755
--- a/payyans/payyans/payyan.py
+++ b/payyans/payyans/payyan.py
@@ -218,8 +218,10 @@ class Payyan:
print "Error: Syntax Error in the Ascii to Unicode Map in line number ", line_number
print "Line: "+ text
return 2 # Error - Syntax error in Mapping file
- lhs = line.split("=") [ 0 ]
- rhs = line.split("=") [ 1 ]
+ lhs = line.split("=") [ 0 ]
+ rhs = line.split("=") [ 1 ]
+ lhs=lhs.strip()
+ rhs=rhs.strip()
if self.direction == 'a2u':
rules_dict[lhs]=rhs
else: