Coverage report: /home/ellis/comp/core/lib/organ/element/lesser/horizontal-rule.lisp
Kind | Covered | All | % |
expression | 0 | 25 | 0.0 |
branch | 0 | 6 | 0.0 |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
3
(define-org-element horizontal-rule () :lesser t)
5
(defvar *org-horizontal-rule-min* 5
6
"Minimum number of #\- chars in sequence which will be parsed as ORG-HORIZONTAL-RULE.")
8
(defvar *org-horizontal-rule-char* #\-)
10
(define-org-parser (horizontal-rule :from string)
11
(unless (< (length input) *org-horizontal-rule-min*)
12
(with-input-from-string (in input)
14
(loop repeat *org-horizontal-rule-min*
15
for c = (read-char in nil)
16
when (not (char-equal c *org-horizontal-rule-char*))
18
(org-create :horizontal-rule)))))