label-tool: unindent template
This commit is contained in:
parent
412efcb1ae
commit
32ad36a287
@ -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&scale={{.Scale}}&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) {
|
||||
|
Loading…
Reference in New Issue
Block a user