瀏覽代碼

Merge pull request #62308 from Calinou/makerst-fix-error-print

Rémi Verschelde 3 年之前
父節點
當前提交
d0aedb1ef1
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      doc/tools/make_rst.py

+ 3 - 3
doc/tools/make_rst.py

@@ -913,9 +913,9 @@ def format_codeblock(code_type, post_text, indent_level, state):  # types: str,
 
 
         if to_skip > indent_level:
         if to_skip > indent_level:
             print_error(
             print_error(
-                "{}.xml: Four spaces should be used for indentation within ["
-                + code_type
-                + "].".format(state.current_class),
+                "{}.xml: Four spaces should be used for indentation within [{}].".format(
+                    state.current_class, code_type
+                ),
                 state,
                 state,
             )
             )