If puremagic has no guesses, try again after ltrim. (#260)

This commit is contained in:
afourney
2025-01-03 16:03:11 -08:00
committed by GitHub
parent 731b39e7f5
commit 436407288f
2 changed files with 20 additions and 1 deletions

View File

@@ -259,7 +259,7 @@ def test_markitdown_local() -> None:
# Test input with leading blank characters
input_data = b" \n\n\n<html><body><h1>Test</h1></body></html>"
result = markitdown.convert_stream(io.BytesIO(input_data), file_extension=".html")
result = markitdown.convert_stream(io.BytesIO(input_data))
assert "# Test" in result.text_content