This commit is contained in:
asd 2020-03-14 18:14:30 -03:00
parent 3fa141846b
commit 1678564800
2 changed files with 5 additions and 5 deletions

View file

@ -161,7 +161,7 @@ Commands may be multiline:
```sh
# This will output foo\nyes
echo foo
echo bar | grep q -b \
true \
&& echo yes \
|| echo no
```

View file

@ -120,8 +120,11 @@ fn read_file(
for l in lines {
let line = l.unwrap();
// blank
if line.is_empty() {
}
// tag
if line.starts_with('%') {
else if line.starts_with('%') {
if !write_cmd(&tags, &comment, &snippet, tag_width, comment_width, stdin) {
break;
}
@ -151,9 +154,6 @@ fn read_file(
(String::from(command), opts),
);
}
// blank
else if line.is_empty() {
}
// snippet
else {
snippet.push_str(display::LINE_SEPARATOR);