소스 검색

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:
             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,
             )