about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <liehr.exchange@gmx.net>2022-07-26 17:38:13 +0200
committerLeón Orell Valerian Liehr <liehr.exchange@gmx.net>2022-07-26 17:38:13 +0200
commitd411a0865556dfc154841c8c2e084f7d464998f1 (patch)
tree6d015f01a1a2575f06d549d77836e2e327f930b7
parent93ffde6f04d3d24327a4e17a2a2bf4f63c246235 (diff)
downloadrust-d411a0865556dfc154841c8c2e084f7d464998f1.tar.gz
rust-d411a0865556dfc154841c8c2e084f7d464998f1.zip
Htmldocck: Substitute the doc channel when blessing
-rw-r--r--src/etc/htmldocck.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc/htmldocck.py b/src/etc/htmldocck.py
index 70b6af717cd..d02ac9d9c0a 100644
--- a/src/etc/htmldocck.py
+++ b/src/etc/htmldocck.py
@@ -440,6 +440,7 @@ def check_snapshot(snapshot_name, actual_tree, normalize_to_text):
 
         if bless:
             with open(snapshot_path, 'w') as snapshot_file:
+                actual_str = actual_str.replace(channel, "{{channel}}")
                 snapshot_file.write(actual_str)
         else:
             print('--- expected ---\n')