From 221075269e9db28881648411dab21070813abf6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Teichgr=C3=A4ber?= Date: Wed, 24 Nov 2010 19:28:47 +0100 Subject: [PATCH] output.go:elem:H1..6: avoid fmt.Sprintf --- output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.go b/output.go index 201fa96..beb8171 100644 --- a/output.go +++ b/output.go @@ -169,7 +169,7 @@ func (w *htmlOut) elem(elt *element, obfuscate bool) *htmlOut { /* Shouldn't occur - these are handled by process_raw_blocks() */ log.Exitf("RAW") case H1, H2, H3, H4, H5, H6: - h := fmt.Sprintf("h%1d>", elt.key-H1+1) /* assumes H1 ... H6 are in order */ + h := "h" + string('1'+elt.key-H1) + ">" /* assumes H1 ... H6 are in order */ w.pad(2).s("<").s(h).elist(elt.children, obfuscate).s("