diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-11-25 10:43:03 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-11-25 10:43:03 -0800 |
commit | 8526a8294742ca7be585207bed71a25e3799433a (patch) | |
tree | 53a2be746911d8483cd4c6613cc906523aba28aa /fish_indent.cpp | |
parent | 94a3203c74802d207c05d9bbfea57ddfd8aff0ee (diff) |
Fix for issue where fish_indent would lose blank lines
Diffstat (limited to 'fish_indent.cpp')
-rw-r--r-- | fish_indent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fish_indent.cpp b/fish_indent.cpp index ddd9189b..195b007c 100644 --- a/fish_indent.cpp +++ b/fish_indent.cpp @@ -91,7 +91,7 @@ static int indent(wcstring &out, const wcstring &in, int flags) int prev_type = 0; int prev_prev_type = 0; - tokenizer_t tok(in.c_str(), TOK_SHOW_COMMENTS); + tokenizer_t tok(in.c_str(), TOK_SHOW_COMMENTS | TOK_SHOW_BLANK_LINES); for (; tok_has_next(&tok); tok_next(&tok)) { int type = tok_last_type(&tok); |