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