We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc84f7f commit b95ea79Copy full SHA for b95ea79
openformats/formats/android.py
@@ -54,10 +54,12 @@ def content(self):
54
return self.text
55
if self.content_end is None:
56
return None
57
- result = self.source[self.text_position:self.content_end]
58
- if result.endswith("]]>"):
59
- result = self.source[self.text_position:self.content_end-len("]]>")]
60
- return result
+ _string_value = self.source[self.text_position:self.content_end]
+ if _string_value.strip().endswith("]]>"):
+ diff = len(_string_value) -len(_string_value.strip())
+ self._content_end = self.content_end-diff if diff>0 else self.content_end
61
+ _string_value = self.source[self.text_position:self.content_end-len("]]>")]
62
+ return _string_value
63
64
65
class AndroidHandler(Handler):
0 commit comments