#2028 Fix patcher offset indexes

This commit is contained in:
Dolan Miu
2023-03-23 21:01:24 +00:00
parent 528008406a
commit 16bfc78d8d
5 changed files with 173 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import { Text } from "@file/paragraph/run/run-components/text";
const formatter = new Formatter();
export const toJson = (xmlData: string): Element => {
const xmlObj = xml2js(xmlData, { compact: false }) as Element;
const xmlObj = xml2js(xmlData, { compact: false, captureSpacesBetweenElements: true }) as Element;
return xmlObj;
};