Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Option to add HTML line breaks to multiline text#52

Open
harryw wants to merge 2 commits into
softvar:master from
harryw:multiline
Open

Option to add HTML line breaks to multiline text #52
harryw wants to merge 2 commits into
softvar:master from
harryw:multiline

Conversation

@harryw

@harryw harryw commented Jul 6, 2022

Copy link
Copy Markdown

This change adds a 'multiline' argument to json2html.convert. When enabled, line breaks are replaced with HTML <br/> tags, preserving them in the rendered HTML. This argument is False by default, retaining backwards-compatibility,

This is similar in intent to #19, but uses explicit line breaks rather than <pre> tags, which can lead to a bunch of style changes like monospace font usage.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /