Minor formatting glich using Windows version

Lubomir I. Ivanov neolit123 at gmail.com
Fri Jun 1 10:26:34 PDT 2018


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
--


More information about the subsurface mailing list