Option for HTML templates to automatically replace line-breaks with <br>
See original GitHub issueIt would be nice to have an option that would make it unnecessary to define line breaks with <br>
, <p>
or <div>
. If line breaks would be automatically converted to <br>
tags when inserting, then an HTML template would be much clearer, because you would only use tags for the required formatting.
This option could be a checkbox together with the other options at the bottom of the template dialog:
[ ] Replace line breaks automatically with <br>
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Option for HTML templates to automatically replace line ...
It would be nice to have an option that would make it unnecessary to define line breaks with <br> , <p> or <div>...
Read more >How do I replace all line breaks in a string with <br / ...
This will turn all returns into HTML ... Then replace it with 2 br. Second line: Search for all single \r\n or \n...
Read more >The Dos and Don'ts of Adding an HTML Line Break
To do a line break in HTML, use the <br> tag. Simply place the tag wherever you want to force a line break....
Read more >HTML Line Break – How to Break a Line with the HTML <br ...
In this tutorial, I'm going to show you how to insert line breaks in your HTML code with some "with and without" examples,...
Read more >HTML br tag
The <br> tag inserts a single line break. The <br> tag is useful for writing addresses or poems. The <br> tag is an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the original request one could use a script
HTMLBreaks
like this:Use it inline like this:
or by converting another template named
Templatename
in a folder namedFoldername
:I still oppose tempering with html. Either you have an HTML template or not. Once the template is inserted, you do not see the br tags, so this is only affecting the composition of the template itself.