Do not add new line characters in the list line for formatedText.

This commit is contained in:
Albert Cervera i Areny 2008-10-29 16:49:51 +01:00
parent 69e0e78d4e
commit 67edd150b1
1 changed files with 3 additions and 3 deletions

View File

@ -262,13 +262,13 @@ class Ocr:
## @brief Returns the text in the given region as a string. Spaces included.
def formatedText(self, region=None):
lines = self.textLinesWithSpaces( region )
texts = []
text = u''
for line in lines:
for c in line:
text += c.character
text += u'\n'
return text
texts.append(text)
return u'\n'.join( texts )
## @brief Calculates slope of text lines
# This value is used by deskew() function to rotate image and