From 55fcd169ef111680d9ec52f13a53f59749fc1d3b Mon Sep 17 00:00:00 2001 From: Adrian Salceanu Date: Thu, 29 Feb 2024 14:52:53 +0100 Subject: [PATCH] Handle empty HTML template file --- Project.toml | 2 +- src/renderers/Html.jl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 42ea3d832..69c7316c3 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Genie" uuid = "c43c736e-a2d1-11e8-161f-af95117fbd1e" authors = ["Adrian Salceanu and the amazing Genie contributors ♥️"] -version = "5.26.1" +version = "5.26.2" [deps] ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63" diff --git a/src/renderers/Html.jl b/src/renderers/Html.jl index e90830939..9cbdc98b9 100644 --- a/src/renderers/Html.jl +++ b/src/renderers/Html.jl @@ -874,6 +874,9 @@ function parsehtml(elem::HTMLParser.Node; partial::Bool = true, indent = 0) :: S String(take!(io)) end +function parsehtml(::Nothing; kwargs...) :: String + "" +end function parsenode(elem::HTMLParser.Node; partial::Bool = true) :: String