summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-02-15 22:23:30 +0100
committerVolpeon <git@volpeon.ink>2023-02-15 22:23:30 +0100
commitf144c415aa5d205483191b5baa7ba791dc969f33 (patch)
tree7632f898201ef996fad5cb0ba0ebc7437f1d8695 /scripts
parentUpdate (diff)
downloadvolpeon.ink-f144c415aa5d205483191b5baa7ba791dc969f33.tar.gz
volpeon.ink-f144c415aa5d205483191b5baa7ba791dc969f33.tar.bz2
volpeon.ink-f144c415aa5d205483191b5baa7ba791dc969f33.zip
Update
Diffstat (limited to 'scripts')
-rw-r--r--scripts/metadata.lua4
-rw-r--r--scripts/page.lua2
2 files changed, 5 insertions, 1 deletions
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)
145 meta.post_icon = meta.post_icon or (meta.parent and meta.parent.list_post_icon) or 145 meta.post_icon = meta.post_icon or (meta.parent and meta.parent.list_post_icon) or
146 (meta.parent and meta.parent.parent and meta.parent.parent.list_post_icon) 146 (meta.parent and meta.parent.parent and meta.parent.parent.list_post_icon)
147 meta.indicator = meta.parent and meta.parent.list_read_indicators 147 meta.indicator = meta.parent and meta.parent.list_read_indicators
148
149 meta.content = meta.content:filter(function (el)
150 return el.tag ~= "LineBreak"
151 end)
148end 152end
149 153
150function process(global, build, meta) 154function 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)
214 meta.prev = meta.prev and utils.stringify(meta.prev) 214 meta.prev = meta.prev and utils.stringify(meta.prev)
215 meta.next = meta.next and utils.stringify(meta.next) 215 meta.next = meta.next and utils.stringify(meta.next)
216 meta.content = meta.content:filter(function (el) 216 meta.content = meta.content:filter(function (el)
217 return el.tag ~= "Str" or el.text ~= "ΒΆ" 217 return el.tag ~= "LineBreak"
218 end) 218 end)
219end 219end
220 220