From 49f94b94c79e47480c43f6f837328fc387c6eb70 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 22 Jun 2022 12:15:05 +0200 Subject: makerst: Fix file name not appearing in error message --- doc/tools/make_rst.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py index f59f2ff872..ce09361dfa 100755 --- a/doc/tools/make_rst.py +++ b/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, ) -- cgit v1.2.3