Hi Lubomir - I haven't made any change to the report templates. Those
extensions were already present in the "One Dive.html' template. The
Windows version of subsurface seems to be ignoring the  `|safe` option?

On 1 June 2018 at 18:26, Lubomir I. Ivanov <[email protected]> wrote:

> On 1 June 2018 at 12:31, Rob Mason <[email protected]> wrote:
> > Hi,
> >
> > This is only a minor issue, but when printing out my dive logs (one dive
> > layout), the 'Notes' section is not interpreting carriage returns
> properly -
> > instead, I see html line breaks <br> which are not being converted.
> >
> > Affects Subsurface 4.7.8 on Windows 10. Linux Mint 18.3 is fine...
> >
> >
>
> the bundled HTML printing templates should work without the <br> problem.
>
> did you make modifications to the templates? the `dive.notes` variable
> needs to be extended with `|safe` to support html tags.
>
> example:
> <td class="fieldData">
>     <p> {{ dive.notes|safe }} </p>
> </td>
>
> lubomir
> --
> _______________________________________________
> subsurface mailing list
> [email protected]
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
>
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to