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

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

lubomir
--
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to