Reintroduce textarea

This commit is contained in:
Eliot Whalan 2016-06-23 20:19:48 +10:00
parent 2bdada3d66
commit 673e6ceb4e
2 changed files with 2 additions and 8 deletions

View File

@ -31,7 +31,7 @@
</div> </div>
<div class="well" style="padding-top: 10px;"> <div class="well" style="padding-top: 10px;">
{{printf "%s" .Body}} <textarea class="form-control" rows="20" id="textArea">{{printf "%s" .Body}}</textarea>
</div> </div>
<div class="pull-right"> <div class="pull-right">

View File

@ -212,13 +212,7 @@ func getPaste(paste string, lang string) string {
if err == sql.ErrNoRows { if err == sql.ErrNoRows {
return "Error invalid paste" return "Error invalid paste"
} else { } else {
if lang == "" {
return html.UnescapeString(s) return html.UnescapeString(s)
} else {
lang, err := highlight(s, lang)
check(err)
return lang
}
} }
} }