diff --git a/tools/scripts/rst_from_xml.py b/tools/scripts/rst_from_xml.py index dbca6f5d7f..42da0a0afe 100755 --- a/tools/scripts/rst_from_xml.py +++ b/tools/scripts/rst_from_xml.py @@ -303,14 +303,14 @@ def write_header(rst_file, class_def): # Warn contributors not to edit this file directly. rst_file.write(":github_url: hide\n\n") rst_file.write( - ".. Generated automatically by RebelEngine/tools/scripts/rst_from_xml.py" + ".. Generated automatically by RebelEngine/tools/scripts/rst_from_xml.py\n" ) rst_file.write( ".. DO NOT EDIT THIS FILE, but the {}.xml source instead.\n".format(class_name) ) rst_file.write(".. The source is found in docs or modules//docs.") rst_file.write("\n\n") - rst_file.write(".. _class_" + class_name + ":") + rst_file.write(".. _class_{}:".format(class_name)) rst_file.write("\n\n") rst_file.write(rst_heading(class_name, "="))