From 2209054226f463a3fd0b88a34e9dcd18e15b363b Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 1 Jun 2018 20:43:31 +0300 Subject: user-manual: add note that some Grantlee variables need '|safe' Grantlee variables need the '|safe' extension, so that they can use HTML tags. Without it, tags like '
' would not be converted to line breaks - e.g. when exporting planned dive notes. Add a note about that in the user manual. Signed-off-by: Lubomir I. Ivanov --- Documentation/user-manual.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Documentation/user-manual.txt') diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt index 9abe2b544..b0202022b 100644 --- a/Documentation/user-manual.txt +++ b/Documentation/user-manual.txt @@ -5035,6 +5035,12 @@ Only a subset of the dive data is exported: |firstGas| (*string*) first used gas |===================== +Please note that some of the variables like 'notes' need to be extended with '|safe' to support HTML tags: +.... +

{{ dive.notes|safe }}

+.... +Otherwise tags like 'br' would not be converted to line breaks. + _Subsurface_ also exports *template_options* data. This data must be used as _CSS_ values to provide a dynamically editable template. The exported data is shown in the following table: |==================== -- cgit v1.2.3-70-g09d2