From f144c415aa5d205483191b5baa7ba791dc969f33 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 15 Feb 2023 22:23:30 +0100 Subject: Update --- scripts/metadata.lua | 4 ++++ scripts/page.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/metadata.lua b/scripts/metadata.lua index 843ed3c..f83b314 100644 --- a/scripts/metadata.lua +++ b/scripts/metadata.lua @@ -145,6 +145,10 @@ function process_base(build, meta) meta.post_icon = meta.post_icon or (meta.parent and meta.parent.list_post_icon) or (meta.parent and meta.parent.parent and meta.parent.parent.list_post_icon) meta.indicator = meta.parent and meta.parent.list_read_indicators + + meta.content = meta.content:filter(function (el) + return el.tag ~= "LineBreak" + end) end function process(global, build, meta) diff --git a/scripts/page.lua b/scripts/page.lua index 72158a1..4c1e096 100644 --- a/scripts/page.lua +++ b/scripts/page.lua @@ -214,7 +214,7 @@ function process_base(meta) meta.prev = meta.prev and utils.stringify(meta.prev) meta.next = meta.next and utils.stringify(meta.next) meta.content = meta.content:filter(function (el) - return el.tag ~= "Str" or el.text ~= "ΒΆ" + return el.tag ~= "LineBreak" end) end -- cgit v1.2.3-70-g09d2