diff options
author | László Németh <nemeth@numbertext.org> | 2012-02-04 22:52:24 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2012-02-04 22:52:24 +0100 |
commit | 1e9fce20ad8656e0b8f3d776da7ec4f1c73364a6 (patch) | |
tree | 3e3c36dce8808b6ff50edffc8fcd00d1ceeacb3d | |
parent | 1a46fc1103856acae202f047528d1bbd837220e4 (diff) |
Small fix of suggestion formatting
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | pythonpath/lightproof_impl___implname__.py | 4 |
4 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,6 @@ +2012-02-04 László Németh <nemeth@numbertext.org>: + - fix multiple suggestions, the problem reported by Yakov Reztsov + 2012-02-02 László Németh <nemeth@numbertext.org>: - Lightproof editor (rule development extension for LibreOffice) - use template and config system, based on @@ -1,3 +1,6 @@ +2012-02-04: Version 1.5 beta 3 +- bug fix in suggestion formatting + 2012-02-02: Version 1.5 beta 2 - rule editor (Writer extension) - code cleanups, only Python dependency in config system @@ -1 +1 @@ -1.5b2 +1.5b3 diff --git a/pythonpath/lightproof_impl___implname__.py b/pythonpath/lightproof_impl___implname__.py index 2344a77..e18d9dd 100644 --- a/pythonpath/lightproof_impl___implname__.py +++ b/pythonpath/lightproof_impl___implname__.py @@ -161,9 +161,9 @@ def proofread( nDocId, TEXT, LOCALE, nStartOfSentencePos, nSuggestedSentenceEndP aErr.aRuleIdentifier = str(i[0]) iscap = (i[-1] and m.group(0)[0:1].isupper()) if i[1][0:1] == "=": - aErr.aSuggestions = tuple(cap(eval(i[1][1:]).split("\\n"), iscap, LOCALE)) + aErr.aSuggestions = tuple(cap(eval(i[1][1:]).split("\n"), iscap, LOCALE)) else: - aErr.aSuggestions = tuple(cap(m.expand(i[1]).split("\\n"), iscap, LOCALE)) + aErr.aSuggestions = tuple(cap(m.expand(i[1]).split("\n"), iscap, LOCALE)) comment = i[2] if comment[0:1] == "=": comment = eval(comment[1:]) |