Skip to content

Commit

Permalink
fix anchor names for permalinks
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGuteMoritz committed Sep 8, 2011
1 parent cdae5de commit 99d14e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pastiche.scm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@


(define (print-snippet s #!key annotation? (count 0)) (define (print-snippet s #!key annotation? (count 0))
(++ (<div> class: "paste-header" (++ (<div> class: "paste-header"
(<h3> (<a> name: (if annotation? (->string count) "") (third s))) (<h3> (<a> name: (sprintf "a~A" count) (third s)))
(if annotation? " added " " pasted ") " by " (second s) " " (if annotation? " added " " pasted ") " by " (second s) " "
(prettify-time (fourth s))) (prettify-time (fourth s)))
(<div> class: "paste" (<div> class: "paste"
Expand Down Expand Up @@ -290,7 +290,7 @@
(bail-out "I am not storing empty pastes.") (bail-out "I am not storing empty pastes.")
(begin (cond ((fetch-paste id) (begin (cond ((fetch-paste id)
=> (lambda (p) => (lambda (p)
(let ((count (length (cdr p)))) (let ((count (+ 1 (length (cdr p)))))
(update-paste id snippet) (update-paste id snippet)
(set! url (make-pathname (set! url (make-pathname
base-path base-path
Expand Down

0 comments on commit 99d14e4

Please sign in to comment.