mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
fix export bug
This commit is contained in:
@@ -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)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user