Index: compile_rules_js_convert.py ================================================================== --- compile_rules_js_convert.py +++ compile_rules_js_convert.py @@ -164,10 +164,11 @@ return [ int(sCode) if sCode.isdigit() or (sCode[0:1] == "-" and sCode[1:].isdigit()) else sCode \ for sCode in sGroupsPositioningCode.split(",") ] def pyActionsToString (dActions): - for sKey, aValue in dActions.items(): + "returns dictionary as string (nbsp -> nnbsp, True -> true, etc.)" + for _, aValue in dActions.items(): if aValue[2] == "-": aValue[3] = aValue[3].replace(" ", " ") # nbsp --> nnbsp aValue[10] = aValue[10].replace("« ", "« ").replace(" »", " »").replace(" :", " :").replace(" :", " :") - return str(dActions).replace("True", "true").replace("False", "false"); + return str(dActions).replace("True", "true").replace("False", "false")