fix export bug
This commit is contained in:
parent
fb00220cc8
commit
b8128aaf86
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ export function parseGPX(gpxData: string): GPXFile {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function buildGPX(file: GPXFile, exclude: string[]): string {
|
export function buildGPX(file: GPXFile, exclude: string[]): string {
|
||||||
const gpx = removeEmptyElements(file.toGPXFileType(exclude));
|
const gpx = file.toGPXFileType(exclude);
|
||||||
|
|
||||||
const builder = new XMLBuilder({
|
const builder = new XMLBuilder({
|
||||||
format: true,
|
format: true,
|
||||||
|
@ -99,7 +99,7 @@ export function buildGPX(file: GPXFile, exclude: string[]): string {
|
||||||
encoding: "UTF-8",
|
encoding: "UTF-8",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
gpx
|
gpx: removeEmptyElements(gpx)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue