From 2d8aa752577589fd7a4abaff020faa75c0829af0 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 23 Jun 2016 20:19:48 +1000 Subject: [PATCH] Reintroduce textarea --- assets/paste.html | 2 +- main.go | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/assets/paste.html b/assets/paste.html index ad38ee7..44eaa1d 100644 --- a/assets/paste.html +++ b/assets/paste.html @@ -31,7 +31,7 @@
- {{printf "%s" .Body}} +
diff --git a/main.go b/main.go index ece7de4..4c48685 100644 --- a/main.go +++ b/main.go @@ -212,13 +212,7 @@ func getPaste(paste string, lang string) string { if err == sql.ErrNoRows { return "Error invalid paste" } else { - if lang == "" { - return html.UnescapeString(s) - } else { - lang, err := highlight(s, lang) - check(err) - return lang - } + return html.UnescapeString(s) } }