Skip to content

Commit f75cd72

Browse files
committed
changing option of get_text to avoid removing spaces between words
1 parent 355fa23 commit f75cd72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reproschema/redcap2reproschema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,12 @@ def parse_html(input_string, default_language="en"):
458458

459459
# If no text was extracted but elements exist, try getting default text
460460
if not result:
461-
text = soup.get_text(strip=True)
461+
text = soup.get_text()
462462
if text:
463463
result[default_language] = text
464464
else:
465465
# No language tags found, use default language
466-
text = soup.get_text(strip=True)
466+
text = soup.get_text()
467467
if text:
468468
result[default_language] = text
469469

0 commit comments

Comments
 (0)