From 178d014fcf1694ca86417d9ef31d9163fb4d35a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Teichgr=C3=A4ber?= Date: Fri, 20 Apr 2012 13:36:59 +0200 Subject: [PATCH] go fmt --- cmd/markdown/main.go | 8 ++++---- markdown.go | 15 ++++++--------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/cmd/markdown/main.go b/cmd/markdown/main.go index 0e10ddb..6413090 100644 --- a/cmd/markdown/main.go +++ b/cmd/markdown/main.go @@ -1,13 +1,13 @@ package main import ( + "bufio" "flag" "fmt" "github.com/knieriem/markdown" - "os" - "bufio" "io/ioutil" "log" + "os" "runtime/pprof" ) @@ -32,8 +32,8 @@ func main() { } e := markdown.Extensions{ - Notes: *optNotes, - Smart: *optSmart, + Notes: *optNotes, + Smart: *optSmart, Dlists: *optDlists, } diff --git a/markdown.go b/markdown.go index ac836b9..ac7132c 100644 --- a/markdown.go +++ b/markdown.go @@ -20,21 +20,20 @@ package markdown // implements Parse() import ( - "strings" "bytes" "log" + "strings" ) // Markdown Extensions: type Extensions struct { - Smart bool - Notes bool - FilterHTML bool - FilterStyles bool - Dlists bool + Smart bool + Notes bool + FilterHTML bool + FilterStyles bool + Dlists bool } - // Parse converts a Markdown document into a tree for later output processing. func Parse(text string, ext Extensions) *Doc { d := new(Doc) @@ -70,7 +69,6 @@ func (d *Doc) parseMarkdown(text string) *element { return d.tree } - /* process_raw_blocks - traverses an element list, replacing any RAW elements with * the result of parsing them as markdown text, and recursing into the children * of parent elements. The result should be a tree of elements without any RAWs. @@ -104,7 +102,6 @@ func (d *Doc) processRawBlocks(input *element) *element { return input } - const ( TABSTOP = 4 )