From 92b5d06e25488b1ef02f3995fde9bd943ca5286a Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sun, 6 Nov 2022 16:56:51 +0000 Subject: [PATCH] docs cache key --- src/textual/_doc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/textual/_doc.py b/src/textual/_doc.py index 329fc73db..32c2ea31d 100644 --- a/src/textual/_doc.py +++ b/src/textual/_doc.py @@ -85,6 +85,7 @@ def take_svg_screenshot( for path in file_paths: with open(path, "rb") as source_file: hash.update(source_file.read()) + hash.update(f"{press}-{title}-{terminal_size}".encode("utf-8")) cache_key = f"{hash.hexdigest()}.svg" return cache_key