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