diff options
author | László Németh <nemeth@numbertext.org> | 2018-10-26 10:58:47 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2018-10-26 15:51:58 +0200 |
commit | 5590c70b47c029006edec41be70c34a0a07fd6fd (patch) | |
tree | 8bb8d199f899fdfc7e12deeb057d66130d02b3b7 /sw | |
parent | 06599d1f670516ce97267d746fa230a0c9310f3d (diff) |
LibreLogo: support backslash escape sequence for apostrophes
(ASCII and typographical) and for enclosing quotes of string literals.
Change-Id: I3caf3b707afa1fb41ba3afe9ff12ebce7ce63847
Reviewed-on: https://gerrit.libreoffice.org/62384
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/uitest/librelogo/compile.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/qa/uitest/librelogo/compile.py b/sw/qa/uitest/librelogo/compile.py index 59d5586e74be..b6eaa6407ce4 100644 --- a/sw/qa/uitest/librelogo/compile.py +++ b/sw/qa/uitest/librelogo/compile.py @@ -87,6 +87,10 @@ class LibreLogoCompileTest(UITestCase): ("LABEL \"label", "label(u'label')"), ("LABEL “label”", "label(u'label')"), ("LABEL 'label'", "label(u'label')"), + ("LABEL ‘label’", "label(u'label')"), + ("LABEL “label\’s”", "label(u'label’s')"), + ("LABEL ““It\’s quote\’s...\””", "label(u'“It’s quote’s...”')"), + ("LABEL ““It\\'s quote\\'s...\””", "label(u'“It\\'s quote\\'s...”')"), ): compiled = xCompile.invoke((test[0],), (), ())[0] self.assertEqual(test[1], re.sub(r'(\n| +\n)+', '\n', re.sub(r'\( ', '(', compiled)).strip()) |