Skip to content

Commit

Permalink
Ommit whitespace before EMPTY if geometry isn't tagged
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreilles committed Aug 15, 2023
1 parent e79fd06 commit baeb26b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geozero/src/wkt/wkt_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ impl<W: Write> WktWriter<W> {
}
self.geometry_sizes.push(size);
if size == 0 {
self.out.write_all(b" EMPTY")?;
if tagged { self.out.write_all(b" ")?; };
self.out.write_all(b"EMPTY")?;
} else {
self.out.write_all(b"(")?;
}
Expand Down

0 comments on commit baeb26b

Please sign in to comment.