From 1caab70038d4c52616e3a84532ac4b161043f6c1 Mon Sep 17 00:00:00 2001 From: Kristaps Jurkans Date: Sun, 8 Mar 2026 03:32:54 +0000 Subject: [PATCH] fix(docs): make project doc flow compatible with updated template (#158) The shuttle datasheet flow was updated to santise strings properly, and within the changes were some updates to the template that was used. This template is shared between the shuttle and individual projects, but the standalone version wasn't updated to be compatible. This commit rectifies that issue. --- project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project.py b/project.py index 9308ca7..ef41ba1 100644 --- a/project.py +++ b/project.py @@ -668,10 +668,10 @@ class Project: content = { "template_version": template_version, - "project_title": template_args["title"].replace('"', '\\"'), + "project_title": f'str("{DocsHelper._escape_characters_in_string(template_args["title"])}")', "project_author": f"({DocsHelper.format_authors(template_args['author'])})", "project_repo_link": self.get_git_remote(), - "project_description": template_args["description"], + "project_description": f'str("{DocsHelper._escape_characters_in_string(template_args["description"])}")', "project_address": "----", "project_clock": DocsHelper.pretty_clock(self.info.clock_hz), "project_type": DocsHelper.get_project_type(