From f6de1b5859e9d7cbdab935ccadd4db0aa78944ef Mon Sep 17 00:00:00 2001 From: Kai Labusch Date: Tue, 1 Sep 2020 10:56:00 +0200 Subject: [PATCH] beautify heading --- neat.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neat.js b/neat.js index 437ab85..6beaf1d 100644 --- a/neat.js +++ b/neat.js @@ -874,7 +874,11 @@ function setupInterface(data, file, urls) { $("#save").attr('disabled', !has_changes); - $("#file-region").html('

' + file.name + '

'); + let parts = file.name.split(/-|_/) + + let heading = parts.join("­") + + $("#file-region").html('

' + heading + '

'); $('.saveButton').on('click', saveFile);