diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-05-05 06:00:47 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-05-05 06:00:47 +0000 |
commit | c2cbccd45a2c356e458abc8bbef3193434e8572a (patch) | |
tree | 139208361d500faa96ef568bb9a1f57b06ba93a3 /src/visitor/linting.rs | |
parent | 12059fcb1ce8237e5587773043cd442e036531c2 (diff) | |
parent | d8eb94901bd66e77e4366a29b67c71db934fadf9 (diff) | |
download | subplot-c2cbccd45a2c356e458abc8bbef3193434e8572a.tar.gz |
Merge branch 'fix-256' into 'main'
(subplot): Add support for example blocks
Closes #256
See merge request subplot/subplot!274
Diffstat (limited to 'src/visitor/linting.rs')
-rw-r--r-- | src/visitor/linting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/visitor/linting.rs b/src/visitor/linting.rs index 03b49ee..6266516 100644 --- a/src/visitor/linting.rs +++ b/src/visitor/linting.rs @@ -13,7 +13,7 @@ impl MutVisitor for LintingVisitor { for block in vec_block { match block { Block::CodeBlock(attr, _) => { - if panhelper::is_class(attr, "file") { + if panhelper::is_class(attr, "file") || panhelper::is_class(attr, "example") { let newlines: Vec<_> = panhelper::find_attr_kv(attr, "add-newline").collect(); match newlines.len() { |