summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriton <riton@riton.home>2025-03-25 00:02:06 +0300
committerriton <riton@riton.home>2025-03-25 00:02:06 +0300
commit2a6e3969aa696b6495448d0b5a5813c68a5a800f (patch)
tree212ddb877d3678c74361285d67914c6c051fa031
parent5cad35b39e6ba16557b477d1eae7479c43290193 (diff)
code bloğunda baştaki yeni satırı es geç
-rw-r--r--okur.lisp6
1 files changed, 3 insertions, 3 deletions
diff --git a/okur.lisp b/okur.lisp
index 583905f..67af1a2 100644
--- a/okur.lisp
+++ b/okur.lisp
@@ -124,10 +124,10 @@
(defmethod ayrıştır ((okur okur) (tag (eql :code)))
(with-slots (i metin blok-son blok-baş) okur
- (let ((kod-baş (+ blok-baş 3)))
- (assert (string= "```" metin :start2 blok-baş :end2 kod-baş))
+ (assert (string= "```" metin :start2 blok-baş :end2 (+ blok-baş 3)))
+ (let ((kod-baş (+ 1 (position #\Newline metin :start (+ blok-baş 3)))))
(let ((kod (metin-parçası okur
- (- (search "```" metin :start2 kod-baş)
+ (- (search "```" metin :from-end t :end2 blok-son)
kod-baş)
kod-baş)))
(ebeveyn-node! :pre