Minor formatting glich using Windows version

Rob Mason robmason38 at googlemail.com
Sat Jun 2 04:43:10 PDT 2018


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 <neolit123 at gmail.com> wrote:

> On 1 June 2018 at 12:31, Rob Mason <robmason38 at googlemail.com> 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
> subsurface at subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20180602/229683ba/attachment.html>


More information about the subsurface mailing list