label-tool: unindent template

This commit is contained in:
Přemysl Eric Janouch 2019-04-14 21:38:26 +02:00
parent 412efcb1ae
commit 32ad36a287
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -19,14 +19,14 @@ import (
var font *bdf.Font
var tmpl = template.Must(template.New("form").Parse(`
<!DOCTYPE html>
<html><body>
<h1>PT-CBP label printing tool</h1>
<table><tr>
<td valign=top>
<!DOCTYPE html>
<html><body>
<h1>PT-CBP label printing tool</h1>
<table><tr>
<td valign=top>
<img border=1 src='?img&amp;scale={{.Scale}}&amp;text={{.Text}}'>
</td>
<td valign=top>
</td>
<td valign=top>
<fieldset>
{{ if .Printer }}
@ -69,9 +69,9 @@ var tmpl = template.Must(template.New("form").Parse(`
<p><input type=submit value='Update'>
<input type=submit name=print value='Update and Print'>
</fieldset></form>
</td>
</tr></table>
</body></html>
</td>
</tr></table>
</body></html>
`))
func getPrinter() (*ql.Printer, error) {