artefactual-sdps / enduro

A tool to support ingest and automation in digital preservation workflows
https://enduro.readthedocs.io/
Apache License 2.0
4 stars 3 forks source link

Feature: convert Unix linebreaks to HTML linebreaks in front-end code #1039

Closed sallain closed 3 weeks ago

sallain commented 1 month ago

Is your feature request related to a problem? Please describe.

Error messages are currently a bit dense to read. In order to make pretty error messages, it would be nice to be able to implement linebreaks. However, they should look nice in both the terminal and in the UI.

Describe the solution you'd like

To address this, the front-end code should convert Unix linebreaks to HTML linebreaks when it encounters them in error messages.

Describe alternatives you've considered

Just use HTML linebreaks, but then error messages will be more cluttered in non-HTML contexts.

Additional context

This is a child issue of https://github.com/artefactual-sdps/preprocessing-sfa/issues/43

sallain commented 3 weeks ago

LGTM!