forked from Shinonome/caelestia-cli
fix: apply mode substitution after dynamic template fill (#84)
This commit is contained in:
@@ -59,7 +59,7 @@ def gen_replace_dynamic(colours: dict[str, str], template: Path, mode: str) -> s
|
|||||||
template_content = template.read_text()
|
template_content = template.read_text()
|
||||||
|
|
||||||
template_filled = re.sub(dotField, fill_colour, template_content)
|
template_filled = re.sub(dotField, fill_colour, template_content)
|
||||||
template_filled = re.sub(modeField, mode, template_content)
|
template_filled = re.sub(modeField, mode, template_filled)
|
||||||
|
|
||||||
return template_filled
|
return template_filled
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user