[more] line_treat over an array
This commit is contained in:
parent
3f2b18cae8
commit
3301fb87c2
1 changed files with 7 additions and 2 deletions
|
@ -181,8 +181,13 @@ class Response:
|
||||||
return self.nomore
|
return self.nomore
|
||||||
|
|
||||||
if self.line_treat is not None and self.elt == 0:
|
if self.line_treat is not None and self.elt == 0:
|
||||||
self.messages[0] = (self.line_treat(self.messages[0])
|
if isinstance(self.messages[0], list):
|
||||||
.replace("\n", " ").strip())
|
for x in self.messages[0]:
|
||||||
|
print(x, self.line_treat(x))
|
||||||
|
self.messages[0] = [self.line_treat(x).replace("\n", " ").strip() for x in self.messages[0]]
|
||||||
|
else:
|
||||||
|
self.messages[0] = (self.line_treat(self.messages[0])
|
||||||
|
.replace("\n", " ").strip())
|
||||||
|
|
||||||
msg = ""
|
msg = ""
|
||||||
if self.title is not None:
|
if self.title is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue