summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Schroeder <alex@gnu.org>2023-11-03 19:13:39 +0100
committerAlex Schroeder <alex@gnu.org>2023-11-03 19:13:39 +0100
commit98ceae04d9309f47754eaea997d177a5bdc08bb6 (patch)
tree6c92ba8c87cc832ad99d9830891f066a22a60929
parent937a992c548a628a1f23f1a888633fc080edd881 (diff)
Always prefix exported map with coordinatesmain
-rw-r--r--gridmapper.svg6
1 files changed, 1 insertions, 5 deletions
diff --git a/gridmapper.svg b/gridmapper.svg
index 15d183b..5a3f04e 100644
--- a/gridmapper.svg
+++ b/gridmapper.svg
@@ -457,11 +457,7 @@ var Map = {
source = source.replace(/ +$/gm,'');
source = source.replace(/\n+$/,'');
source = source.replace(/^(\n*)( *)/, function(match, ys, xs) {
- if (match.length > 5) {
- return '(' + xs.length + ',' + ys.length + ')';
- } else {
- return match;
- }
+ return '(' + xs.length + ',' + ys.length + ')';
});
return source;
},