From 1681684f3e79dab5a5d29c563c8af7b9771e411b Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 3 Aug 2022 14:44:30 -0400 Subject: [PATCH] support the godawful html on https://www.gimp.org/docs/python/index.html --- dom.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dom.d b/dom.d index e67325c..37182cc 100644 --- a/dom.d +++ b/dom.d @@ -826,6 +826,8 @@ class Document : FileResource, DomParent { pos++; // skip the '>' string tname = data[p..pos-1]; + if(!strict) + tname = tname.strip; if(!caseSensitive) tname = tname.toLower(); @@ -8243,11 +8245,11 @@ unittest { } /* -Copyright: Adam D. Ruppe, 2010 - 2021 +Copyright: Adam D. Ruppe, 2010 - 2022 License: Boost License 1.0. Authors: Adam D. Ruppe, with contributions by Nick Sabalausky, Trass3r, and ketmar among others - Copyright Adam D. Ruppe 2010-2021. + Copyright Adam D. Ruppe 2010-2022. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)