support path names with spaces
Closed this issue · 0 comments
bertsky commented
When opening a workspace with spaces anywhere in the directory names, ocrd_browser fails:
browse-ocrd PRImA\ Layout\ Analysis\ Dataset/mets.xml
FileNotFoundError: File path passed as 'url' to download_to_directory does not exist: /daten/PRImA%20Layout%20Analysis%20Dataset/mets.xml
The cause is not on the OCR-D side AFAICS, but here:
which in turn does
browse-ocrd/ocrd_browser/model/document.py
Lines 496 to 497 in 73fc4e2