Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where types were being displayed multiple times in notes #175

Merged
merged 2 commits into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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