diff options
| author | Asko Nõmm <asko@bien.ee> | 2021-12-02 01:31:22 -0300 |
|---|---|---|
| committer | Asko Nõmm <asko@bien.ee> | 2021-12-02 01:31:22 -0300 |
| commit | e072e68ed490889110efa4e1bc73b80000a65636 (patch) | |
| tree | 0859ef4fa5b1c50f813188eb63deed5089e158f8 /src | |
| parent | bdb6c57bd432026c80f3a208709228545db63eac (diff) | |
Implement empty block
Diffstat (limited to 'src')
| -rw-r--r-- | src/clarktown/parsers/empty_block.clj | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/clarktown/parsers/empty_block.clj b/src/clarktown/parsers/empty_block.clj index 889c9ae..57d4655 100644 --- a/src/clarktown/parsers/empty_block.clj +++ b/src/clarktown/parsers/empty_block.clj @@ -4,10 +4,14 @@ (defn is? + "Determines if the current block is an empty block or not." [block] - (string/blank? (string/trim block))) + (-> (string/replace block #"\n" "") + string/trim + string/blank?)) (defn render + "Renders an empty block." [block] - "emptyblockgoeshere") + "") |
