From 31a96c6ce76bbd2f8482560385986d927eb43b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20=C5=A0altenis?= Date: Sun, 26 Jan 2014 21:21:25 +0200 Subject: [PATCH] go fmt --- html.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html.go b/html.go index 596fa35..bce2809 100644 --- a/html.go +++ b/html.go @@ -42,7 +42,7 @@ const ( ) var ( - tags = []string{ + tags = []string{ "b", "blockquote", "code", @@ -70,10 +70,10 @@ var ( "strike", "ul", } - urlRe = `((https?|ftp):\/\/|\/)[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+` + urlRe = `((https?|ftp):\/\/|\/)[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+` tagWhitelist = regexp.MustCompile(`^(<\/?(` + strings.Join(tags, "|") + `)>|<(br|hr)\s?\/?>)$`) - anchorClean = regexp.MustCompile(`^(]+")?\s?>|<\/a>)$`) - imgClean = regexp.MustCompile(`^(]*")?(\stitle="[^"<>]*")?\s?\/?>)$`) + anchorClean = regexp.MustCompile(`^(]+")?\s?>|<\/a>)$`) + imgClean = regexp.MustCompile(`^(]*")?(\stitle="[^"<>]*")?\s?\/?>)$`) ) // Html is a type that implements the Renderer interface for HTML output.