Skip to content

Commit

Permalink
Fix issue where types were being displayed multiple times in notes (#175
Browse files Browse the repository at this point in the history
)

This affects the display of any new structured data
  • Loading branch information
ahyatt authored Sep 1, 2024
1 parent 12d2524 commit 583f617
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 2 additions & 0 deletions doc/ekg.org
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ triples library is already installed.
(require 'ekg)
#+end_src
* Changelog
** Version 0.6.4
- Fix display of extended structured data in notes
** Version 0.6.3
- Fix issue in trying to get a single-valued item to show up in the metadata line.
- Remove the never-used named, email, and person schema.
Expand Down
10 changes: 10 additions & 0 deletions doc/ekg.texi
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Installation
Changelog
* Version 0.6.4: Version 064.
* Version 0.6.3: Version 063.
* Version 0.6.2: Version 062.
* Version 0.6.1: Version 061.
Expand Down Expand Up @@ -202,6 +203,7 @@ triples library is already installed.
@chapter Changelog

@menu
* Version 0.6.4: Version 064.
* Version 0.6.3: Version 063.
* Version 0.6.2: Version 062.
* Version 0.6.1: Version 061.
Expand All @@ -220,6 +222,14 @@ triples library is already installed.
* Version 0.2: Version 02.
@end menu

@node Version 064
@section Version 0.6.4

@itemize
@item
Fix display of extended structured data in notes
@end itemize

@node Version 063
@section Version 0.6.3

Expand Down
11 changes: 6 additions & 5 deletions ekg.el
Original file line number Diff line number Diff line change
Expand Up @@ -1827,11 +1827,12 @@ tags)."
(if (and (eq 'note (ekg-inline-type i))
(eq 'other (car (ekg-inline-command i))))
(cl-loop for type in
(seq-difference
(mapcar (lambda (prop)
(car (triples-combined-to-type-and-prop prop)))
(map-keys (ekg-note-properties note)))
template-types)
(seq-uniq
(seq-difference
(mapcar (lambda (prop)
(car (triples-combined-to-type-and-prop prop)))
(map-keys (ekg-note-properties note)))
template-types))
when (fboundp (intern (format "ekg-display-note-%s" type)))
collect (make-ekg-inline :type 'note
:command (list type)
Expand Down

0 comments on commit 583f617

Please sign in to comment.