1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

check-md: fix missing default_command when nofmt was set (#8591)

This commit is contained in:
Lukas Neubert 2021-02-05 19:25:27 +01:00 committed by GitHub
parent 9a1da1a97b
commit 59c1c77bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,6 +170,8 @@ fn (mut f MDFile) parse_line(lnumber int, line string) {
mut command := line.replace('```v', '').trim_space()
if command == '' {
command = default_command
} else if command == 'nofmt' {
command += ' $default_command'
}
f.current = VCodeExample{
sline: lnumber