From e4a72274912451585b3c3ce6a458070d856164a6 Mon Sep 17 00:00:00 2001 From: Sebastian Proost Date: Tue, 16 Jan 2018 07:10:32 +0100 Subject: [PATCH] fix pablo.js doesn't support names with dash unless in quotes --- conekt/static/js/planet_svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conekt/static/js/planet_svg.js b/conekt/static/js/planet_svg.js index b4ce94d..6f1cf31 100644 --- a/conekt/static/js/planet_svg.js +++ b/conekt/static/js/planet_svg.js @@ -114,7 +114,7 @@ function writeSVG(data) { text = node.data('name'); if (node.data('best_name') !== '') { text = node.data('best_name'); } - group.text({y:6, fill:"none", stroke:'#ffffff', stroke-width:"2"}).content(text) + group.text({y:6, fill:"none", stroke:'#ffffff', 'stroke-width':"2"}).content(text) .attr('text-anchor', 'middle') .attr('font-family', 'sans-serif'); group.text({y:6, fill:"black"}).content(text)