Skip to content

Commit

Permalink
Removing whitespace from beginning & end of tags
Browse files Browse the repository at this point in the history
  • Loading branch information
duckduckgrayduck authored Aug 15, 2023
1 parent 95b650a commit e960890
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ class ExtractAndTag(SoftTimeOutAddOn):
"""Add-On that extracts text between a start and end string"""
def main(self):
self.set_message("Extracting text from documents...")
start = self.data.get('start')
end = self.data.get('end')
name_key = self.data.get("key_name")
start = self.data.get('start').strip()
end = self.data.get('end').strip()
name_key = self.data.get("key_name").strip()
for document in self.get_documents():
text_to_parse = document.full_text
text_to_parse = text_to_parse.replace("\n", " ")
Expand Down

0 comments on commit e960890

Please sign in to comment.