markitdown/tests
Will 保哥 bf72b4a38d Fix markitdown.convert_stream handling of leading blanks
Fixes #222

Address issue with `markitdown.convert_stream` crashing on input with leading blank characters or line breaks.

* Modify `convert_stream` function in `src/markitdown/_markitdown.py` to strip leading blank characters or line breaks from the input stream using a new helper function `_strip_leading_blanks`.
* Add a test case in `tests/test_markitdown.py` to verify that `markitdown.convert_stream` handles input with leading blank characters or line breaks correctly.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/markitdown/issues/222?shareId=XXXX-XXXX-XXXX-XXXX).
2024-12-28 01:19:07 +08:00
..
test_files Merge branch 'main' into main 2024-12-17 15:37:28 -08:00
__init__.py Initial commit. 2024-11-13 13:00:01 -08:00
test_markitdown.py Fix markitdown.convert_stream handling of leading blanks 2024-12-28 01:19:07 +08:00