From 7744c4a0016be338c6c14b14f620d8af7d76111e Mon Sep 17 00:00:00 2001 From: László Németh Date: Fri, 25 Oct 2013 08:30:30 +0200 Subject: librelogo: fix division with measurements Change-Id: I2204002533bbb3e7c801b3228b0310a42b19a882 --- librelogo/source/LibreLogo/LibreLogo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'librelogo') diff --git a/librelogo/source/LibreLogo/LibreLogo.py b/librelogo/source/LibreLogo/LibreLogo.py index 9ad56222f6b1..f46f12701e85 100644 --- a/librelogo/source/LibreLogo/LibreLogo.py +++ b/librelogo/source/LibreLogo/LibreLogo.py @@ -1413,7 +1413,7 @@ def __loadlang__(lang, a): [r"(?<=\n)__repeat__([^\n]*\w[^\n]*):(?=\n)", "for %s in range(1, 1+int(\\1)):" % repcount], # repeat block [r"(?<=\d)[%s](?=\d)" % a['DECIMAL'], "."], # decimal sign [r"(? /1.0, but not with // - [r"\b([0-9]+([,.][0-9]+)?)(%s)\b" % a['HOUR'], "\\1*30"], # 12h = 12*30° + [r"\b([0-9]+([,.][0-9]+)?)(%s)\b" % a['HOUR'], lambda r: str(float(r.group(1).replace(",", "."))*30)], # 12h = 12*30° [r"(?<=\d)(%s)" % a['DEG'], ""], # 1° -> 1 [r"(? (1 + sqrt(x)) [r"(?<=[-*/=+,]) ?\n\)(\w+)\(", "\\1()"], # read attributes, eg. x = fillcolor [r"(?<=return) ?\n\)(\w+)\(", "\\1()"], # return + user function -- cgit