From 4b5ea1197c0a69bb43a2b75dab38fde0ca912d6d Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sun, 26 Dec 2021 21:55:10 +0200 Subject: [PATCH] [plugin] Exporter: HTML template fix (#8592) Changes in accordance with #8535: -add html and body tags to support older embedded browsers -bookmark note formatting: grey letters, indented, without title (Massive changes are caused with the indentation along the tags). --- plugins/exporter.koplugin/note.tpl | 60 ++++++++++++++++-------------- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/plugins/exporter.koplugin/note.tpl b/plugins/exporter.koplugin/note.tpl index 6b2975c0c..83ace096e 100644 --- a/plugins/exporter.koplugin/note.tpl +++ b/plugins/exporter.koplugin/note.tpl @@ -49,33 +49,39 @@ end }# - -
-

#{= htmlescape(booknotes.title) }#

-
#{= htmlescape(booknotes.author) }#
- #{ for _, chapter in ipairs(booknotes) do }# - #{ if chapter.title then }# -
#{= htmlescape(chapter.title) }#
- #{ end }# - #{ for index, clipping in ipairs(chapter) do }# -
-
-
- #{= os.date("%x", clipping.time) }##{ if clipping.chapter then }##{= clipping.chapter }#: #{ end }# #{= clipping.page }# -
-
- #{= newline_to_br(htmlescape(clipping.text)) }# - #{ if clipping.image then }# - + + + + #{= htmlescape(booknotes.title) }# + + +
+

#{= htmlescape(booknotes.title) }#

+
#{= htmlescape(booknotes.author) }#
+ #{ for _, chapter in ipairs(booknotes) do }# + #{ if chapter.title then }# +
#{= htmlescape(chapter.title) }#
+ #{ end }# + #{ for index, clipping in ipairs(chapter) do }# +
+
+
+ #{= os.date("%x", clipping.time) }##{ if clipping.chapter then }##{= clipping.chapter }#: #{ end }# #{= clipping.page }# +
+
+ #{= newline_to_br(htmlescape(clipping.text)) }# + #{ if clipping.image then }# + + #{ end }# +
+ #{ if clipping.note then }# +
+ #{= newline_to_br(htmlescape(clipping.note)) }# +
#{ end }#
- #{ if clipping.note then }# -
- #{= htmlescape(notemarks) }# - #{= newline_to_br(htmlescape(clipping.note)) }# -
- #{ end }# -
+ #{ end }# #{ end }# - #{ end }# -
+
+ +