Reintroduce textarea

This commit is contained in:
Eliot Whalan 2016-06-23 20:19:48 +10:00
parent d0f5ffda69
commit 2d8aa75257
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
2 changed files with 2 additions and 8 deletions

View File

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

View File

@ -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)
}
}