Minor formatting glich using Windows version

Lubomir I. Ivanov neolit123 at gmail.com
Fri Jun 1 10:52:43 PDT 2018


On 1 June 2018 at 20: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>
>

just submitted a change for our user manual about that:
https://github.com/Subsurface-divelog/subsurface/pull/1347/files

lubomir
--


More information about the subsurface mailing list