summaryrefslogtreecommitdiff
path: root/src/clarktown/correctors/atx_heading_block.clj
diff options
context:
space:
mode:
authorAsko Nõmm <ano@ano.ee>2022-05-11 20:42:30 +0300
committerAsko Nõmm <ano@ano.ee>2022-05-11 20:42:30 +0300
commit7c3eba77fd3de0e108efba94018233a57e66989e (patch)
treeae7e3c28a7b097d9dffd60a005c96fdb9758f039 /src/clarktown/correctors/atx_heading_block.clj
parent94c1c0ca639f55ff9073cb1fdf2ad6015bb6bae1 (diff)
Implement indented code blocks.
Diffstat (limited to 'src/clarktown/correctors/atx_heading_block.clj')
-rw-r--r--src/clarktown/correctors/atx_heading_block.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clarktown/correctors/atx_heading_block.clj b/src/clarktown/correctors/atx_heading_block.clj
index 6668700..5a5f713 100644
--- a/src/clarktown/correctors/atx_heading_block.clj
+++ b/src/clarktown/correctors/atx_heading_block.clj
@@ -20,7 +20,7 @@
there's no empty newline above, we need to create one, and
so this function must then return `true`."
[lines line index]
- (and (is-atx-heading? (string/trim line))
+ (and (is-atx-heading? line)
(> index 0)
(not (= (-> (nth lines (- index 1))
string/trim) ""))