Browse Source

makerst: Fix file name not appearing in error message

Hugo Locurcio 3 years ago
parent
commit
49f94b94c7
1 changed files with 3 additions and 3 deletions
  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,
             )