Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure valid whitespace is not trimmed when html parsing mode is used #1689

Merged
merged 2 commits into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion thirdparty/xsxml/xsxml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -924,7 +926,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)
{
Expand Down
Loading