sync with current Go (gofix go1rename, error)

This commit is contained in:
Michael Teichgräber 2011-11-18 18:25:39 +01:00
parent 18aa4e492b
commit d265ac0f21

View File

@ -20,17 +20,16 @@ package markdown
// HTML output functions // HTML output functions
import ( import (
"os"
"fmt" "fmt"
"log" "log"
"rand" "math/rand"
"strings" "strings"
) )
type Writer interface { type Writer interface {
WriteString(string) (int, os.Error) WriteString(string) (int, error)
WriteRune(int) (int, os.Error) WriteRune(int) (int, error)
WriteByte(byte) os.Error WriteByte(byte) error
} }
type htmlOut struct { type htmlOut struct {
@ -76,7 +75,6 @@ func (w *htmlOut) s(s string) *htmlOut {
return w return w
} }
/* print string, escaping for HTML /* print string, escaping for HTML
* If obfuscate selected, convert characters to hex or decimal entities at random * If obfuscate selected, convert characters to hex or decimal entities at random
*/ */
@ -231,7 +229,6 @@ func (w *htmlOut) elem(elt *element, obfuscate bool) *htmlOut {
return w return w
} }
func (w *htmlOut) printEndnotes() { func (w *htmlOut) printEndnotes() {
counter := 0 counter := 0