Skip to content

Commit

Permalink
Fix ODF file detection in doc-view-mode
Browse files Browse the repository at this point in the history
* lisp/doc-view.el (doc-view-set-doc-type): Fix ODF file detection
(bug#54947).
  • Loading branch information
larsmagne committed Apr 16, 2022
1 parent 625d6da commit b3ff490
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lisp/doc-view.el
Original file line number Diff line number Diff line change
Expand Up @@ -1947,8 +1947,7 @@ If BACKWARD is non-nil, jump to the previous match."
;; zip-archives, so that this same association is used for
;; cbz files. This is fine, as cbz files should be handled
;; like epub anyway.
((looking-at "PK") '(epub))
))))
((looking-at "PK") '(epub odf))))))
(setq-local
doc-view-doc-type
(car (or (nreverse (seq-intersection name-types content-types #'eq))
Expand Down

0 comments on commit b3ff490

Please sign in to comment.