Commit f1fc26f for mammothjs
commit f1fc26fadf1b67ad123980d5b89bac2ffe9210f7
Author: Michael Williamson <mike@zwobble.org>
Date: Sat Sep 12 10:04:18 2026 +0100
Start warning with capital letter
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js
index 2c2a741..8b7167f 100644
--- a/lib/docx/body-reader.js
+++ b/lib/docx/body-reader.js
@@ -171,7 +171,7 @@ function BodyReader(options) {
} else if (type === "end") {
if (complexFieldStack.length === 0) {
return emptyResultWithMessages([warning(
- "ignoring complex field end character without corresponding start character"
+ "Ignoring complex field end character without corresponding start character"
)]);
}
@@ -187,7 +187,7 @@ function BodyReader(options) {
} else if (type === "separate") {
if (complexFieldStack.length === 0) {
return emptyResultWithMessages([warning(
- "ignoring complex field separator character without corresponding start character"
+ "Ignoring complex field separator character without corresponding start character"
)]);
}
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js
index d8b521c..86f70d3 100644
--- a/test/docx/body-reader.tests.js
+++ b/test/docx/body-reader.tests.js
@@ -593,7 +593,7 @@ test("complex fields", (function() {
assertThat(result.value.children, contains(
isEmptyRun
));
- assert.deepEqual(result.messages, [warning("ignoring complex field separator character without corresponding start character")]);
+ assert.deepEqual(result.messages, [warning("Ignoring complex field separator character without corresponding start character")]);
},
"end character without corresponding start character is ignored": function() {
@@ -606,7 +606,7 @@ test("complex fields", (function() {
assertThat(result.value.children, contains(
isEmptyRun
));
- assert.deepEqual(result.messages, [warning("ignoring complex field end character without corresponding start character")]);
+ assert.deepEqual(result.messages, [warning("Ignoring complex field end character without corresponding start character")]);
}
};
})());