You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added msxml_normalize_line patchset
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
From 9be306cd143e6bf5f300a321101fb713edb9155b Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
||||
Date: Sat, 12 Jul 2025 15:20:04 +1000
|
||||
Subject: [PATCH] msxml: Support ISAXXMLReader::putFeature
|
||||
normalize-line-breaks option
|
||||
|
||||
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36686
|
||||
---
|
||||
dlls/msxml3/saxreader.c | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
|
||||
index 71a7f334420..9650af38597 100644
|
||||
--- a/dlls/msxml3/saxreader.c
|
||||
+++ b/dlls/msxml3/saxreader.c
|
||||
@@ -60,7 +60,8 @@ typedef enum
|
||||
SuppressValidationfatalError = 1 << 12,
|
||||
UseInlineSchema = 1 << 13,
|
||||
UseSchemaLocation = 1 << 14,
|
||||
- LexicalHandlerParEntities = 1 << 15
|
||||
+ LexicalHandlerParEntities = 1 << 15,
|
||||
+ NormalizeLineBreaks = 1 << 16,
|
||||
} saxreader_feature;
|
||||
|
||||
struct saxreader_feature_pair
|
||||
@@ -78,6 +79,7 @@ static const struct saxreader_feature_pair saxreader_feature_map[] = {
|
||||
{ Namespaces, L"http://xml.org/sax/features/namespaces" },
|
||||
{ ProhibitDTD, L"prohibit-dtd" },
|
||||
{ SchemaValidation, L"schema-validation" },
|
||||
+ { NormalizeLineBreaks, L"normalize-line-breaks" },
|
||||
};
|
||||
|
||||
static saxreader_feature get_saxreader_feature(const WCHAR *name)
|
||||
@@ -3159,7 +3161,8 @@ static HRESULT WINAPI isaxxmlreader_putFeature(
|
||||
if (feature == LexicalHandlerParEntities ||
|
||||
feature == ProhibitDTD ||
|
||||
feature == ExternalGeneralEntities ||
|
||||
- feature == ExternalParameterEntities)
|
||||
+ feature == ExternalParameterEntities ||
|
||||
+ feature == NormalizeLineBreaks)
|
||||
{
|
||||
FIXME("(%p)->(%s %x) stub\n", This, debugstr_w(feature_name), value);
|
||||
return set_feature_value(This, feature, value);
|
||||
--
|
||||
2.47.2
|
||||
|
2
patches/msxml_normalize_line/definition
Normal file
2
patches/msxml_normalize_line/definition
Normal file
@@ -0,0 +1,2 @@
|
||||
Fixes: [36686] msxml: Support ISAXXMLReader::putFeature normalize-line-breaks option
|
||||
|
Reference in New Issue
Block a user