Skip to content

Support softbreaks, i.e., non-semantic line breaks.#80

Open
tarleb wants to merge 1 commit intojgm:masterfrom
tarleb:softbreaks
Open

Support softbreaks, i.e., non-semantic line breaks.#80
tarleb wants to merge 1 commit intojgm:masterfrom
tarleb:softbreaks

Conversation

@tarleb
Copy link
Contributor

@tarleb tarleb commented Aug 10, 2024

The parser now uses the softbreak break of the writer for non-semantic line breaks. This is a backwards-compatible change, as it falls back to space if softbreak is not defined.

The generic writer is updated to allow enabling softbreaks by setting the wrap_preserve option to a truthy value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant