Skip to content

Commit

Permalink
fix: mistake in reversing html and text attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Dec 10, 2024
1 parent 97c4e3a commit be81d8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def transform_document(self, document: Document, **kwargs: Any) -> Document:

article = parse(document.page_content, **{**self.options, **kwargs})

result = article.text_content if target == "html" else article.content
result = article.content if target == "html" else article.text_content

metadata = {**document.metadata, **asdict(article)}

Expand Down

0 comments on commit be81d8c

Please sign in to comment.