New template issues with extra lines being inserted

Situation
When adding content to a template in the repository manager, if the content includes a bulleted list or a horizontal rule, it appears to add an extra black line above.

In some cases where you have text followed by a bulleted list this can lead to lots of white space and looks badly formatted.

This appears to be an issue with how the template system is handling bulleted lists or HR from what I can tell. Removing lines in the “source” view and saving - the template system is just adding those massive white spaced areas back or maybe the editor is?
Template showing blank areas attached.

test.tpl (134 Bytes)

@sjpadgett is this something you might have a fix for?

OpenEMR Version
I’m using OpenEMR 6.1.0

Browser:
I’m using: Tested with chrome and firefox latest.

Operating System
I’m using: 10

Logs
N/A

@madmax
You need to add {ParseAsHTML} directive anywhere in the form. Top is best.
Since I allow both text and html, text needs to have newlines converted to <br /> tags. Thus what you’re seeing. The {ParseAsHTML} will remove newlines.

You’ll need to try harder to stump me Mark!:slight_smile:

3 Likes

Is there anyway to get this inserted automatically if certain buttons in the editor are used such as the bullet point one? :slight_smile:

I’ll see what else i can come up with :smiley:

1 Like

It’d be a good idea that I’ll consider next update…

1 Like