mirror of
https://github.com/microsoft/markitdown.git
synced 2025-11-17 02:24:54 +00:00
Added a test for leading spaces. (#258)
This commit is contained in:
parent
08ed32869e
commit
731b39e7f5
@ -257,6 +257,11 @@ def test_markitdown_local() -> None:
|
||||
result = markitdown.convert(os.path.join(TEST_FILES_DIR, "test_outlook_msg.msg"))
|
||||
validate_strings(result, MSG_TEST_STRINGS)
|
||||
|
||||
# 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")
|
||||
assert "# Test" in result.text_content
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
skip_exiftool,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user