1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Varun Hiremath <varunhiremath@gmail.com>
Date: Sat, 5 Feb 2022 21:46:03 -0500
Subject: patch to not strip leading spaces out of feeds (Closes: #496765)
---
src/nxml_parser.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/nxml_parser.c b/src/nxml_parser.c
index c363618..56882e6 100644
--- a/src/nxml_parser.c
+++ b/src/nxml_parser.c
@@ -51,6 +51,7 @@ static char *__nxml_parse_string(nxml_t *doc, char *buffer, int size) {
if (*(buffer + i) == 0xd)
continue;
+ /*
if (*(buffer + i) == 0xa || *(buffer + i) == 0x9 || *(buffer + i) == 0x20) {
if (!q) {
if (!doc->priv.textindent)
@@ -60,7 +61,8 @@ static char *__nxml_parse_string(nxml_t *doc, char *buffer, int size) {
}
}
- else if (*(buffer + i) == '&') {
+ */
+ if (*(buffer + i) == '&') {
if (!strncmp(buffer + i, "<", 4)) {
__nxml_string_add(ret, "<", 1);
i += 3;
|