Skip to content

Commit

Permalink
remove NO_EXPAND_TABS options
Browse files Browse the repository at this point in the history
  • Loading branch information
Russ Ross committed Jul 1, 2011
1 parent 7544368 commit a99c922
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions markdown.go
Expand Up @@ -33,7 +33,6 @@ const (
EXTENSION_LAX_HTML_BLOCKS
EXTENSION_SPACE_HEADERS
EXTENSION_HARD_LINE_BREAK
EXTENSION_NO_EXPAND_TABS
EXTENSION_TAB_SIZE_EIGHT
)

Expand Down Expand Up @@ -256,11 +255,7 @@ func firstPass(parser *Parser, input []byte) []byte {

// add the line body if present
if end > beg {
if parser.flags&EXTENSION_NO_EXPAND_TABS == 0 {
expandTabs(&out, input[beg:end], tabSize)
} else {
out.Write(input[beg:end])
}
expandTabs(&out, input[beg:end], tabSize)
}
out.WriteByte('\n')

Expand Down

0 comments on commit a99c922

Please sign in to comment.