aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nov.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/nov.el b/nov.el
index 664412d..0d9e524 100644
--- a/nov.el
+++ b/nov.el
@@ -552,9 +552,9 @@ Sets `header-line-format' according to `nov-header-line-format'."
;; this shouldn't happen for properly authored EPUBs
(when (not title)
(setq title (propertize "No title" 'face 'italic)))
- (string-replace
- "%" "%%"
- (format-spec
+ (replace-regexp-in-string
+ "%" "%%"
+ (format-spec
nov-header-line-format
`((?c . ,chapter-title)
(?t . ,title))))))))