Skip to content

Commit 4ee3059

Browse files
committed
fix parsing of space to a 0 by fast parser
1 parent 3220e44 commit 4ee3059

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/processors/gridsetProcessor.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,12 @@ class GridsetProcessor extends BaseProcessor {
402402
if (s.r !== undefined) {
403403
const rElements = Array.isArray(s.r) ? s.r : [s.r];
404404
for (const r of rElements) {
405+
if (typeof r === 'number') {
406+
if (r !== 0) {
407+
parts.push(String(r));
408+
}
409+
continue;
410+
}
405411
if (typeof r === 'object' && r !== null && '#text' in r) {
406412
parts.push(String(r['#text']));
407413
} else {

0 commit comments

Comments
 (0)