mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
remove NO_EXPAND_TABS options
This commit is contained in:
parent
7544368fce
commit
a99c922b84
|
@ -33,7 +33,6 @@ const (
|
|||
EXTENSION_LAX_HTML_BLOCKS
|
||||
EXTENSION_SPACE_HEADERS
|
||||
EXTENSION_HARD_LINE_BREAK
|
||||
EXTENSION_NO_EXPAND_TABS
|
||||
EXTENSION_TAB_SIZE_EIGHT
|
||||
)
|
||||
|
||||
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user