From b143b57f5120295b4d0f583f81e1f61d305aa04d Mon Sep 17 00:00:00 2001 From: rh101 Date: Fri, 16 Feb 2024 20:02:03 +1100 Subject: [PATCH 1/2] Ensure valid whitespace is not trimmed when html mode is enabled. --- thirdparty/xsxml/xsxml.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/xsxml/xsxml.hpp b/thirdparty/xsxml/xsxml.hpp index 38b49f30fcf3..976862fe4267 100644 --- a/thirdparty/xsxml/xsxml.hpp +++ b/thirdparty/xsxml/xsxml.hpp @@ -924,7 +924,7 @@ class xml_sax3_parser // Trim trailing whitespace if flag is set; leading was already trimmed by whitespace skip after // > - if (Flags & parse_trim_whitespace) + if (Flags & parse_trim_whitespace && !(Flags & parse_html_entity_translation)) { if (Flags & parse_normalize_whitespace) { From 78e02d8c7eebf67622745709f94d4d38976755c6 Mon Sep 17 00:00:00 2001 From: rh101 Date: Fri, 16 Feb 2024 20:28:37 +1100 Subject: [PATCH 2/2] Add copyright notice --- thirdparty/xsxml/xsxml.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thirdparty/xsxml/xsxml.hpp b/thirdparty/xsxml/xsxml.hpp index 976862fe4267..79b74c6e4033 100644 --- a/thirdparty/xsxml/xsxml.hpp +++ b/thirdparty/xsxml/xsxml.hpp @@ -5,6 +5,8 @@ /* The MIT License (MIT) Copyright (c) 2019 halx99 +Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md). + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights