@@ -370,11 +370,13 @@ def _create_styled_text_from_node(*, child: nodes.Element) -> Text:
370370 ]
371371
372372 if unsupported_styles :
373- _LOGGER .warning (
374- "Unsupported text style classes: %s. "
375- "Text will be rendered without styling." ,
376- ", " .join (unsupported_styles ),
373+ unsupported_style_msg = (
374+ "Unsupported text style classes: "
375+ f"{ ', ' .join (unsupported_styles )} . "
376+ f"Text on line { child .parent .line } in { child .parent .source } will "
377+ "be rendered without styling."
377378 )
379+ _LOGGER .warning (unsupported_style_msg )
378380
379381 color : BGColor | Color | None = bg_color or text_color
380382 return text (
@@ -664,9 +666,15 @@ def _(
664666 _LOGGER .warning (msg = table_multiple_header_rows_msg )
665667
666668 if table_structure .num_stub_columns > 1 :
669+ first_body_row = table_structure .body_rows [0 ]
670+ first_body_row_entry = first_body_row .children [0 ]
671+ first_body_row_paragraph = first_body_row_entry .children [0 ]
667672 table_more_than_one_stub_column_msg = (
668673 f"Tables with more than 1 stub column are not supported. "
669- f"Found { table_structure .num_stub_columns } stub columns."
674+ f"Found { table_structure .num_stub_columns } stub columns "
675+ f"on table with first body row on line "
676+ f"{ first_body_row_paragraph .line } in "
677+ f"{ first_body_row_paragraph .source } ."
670678 )
671679 _LOGGER .warning (msg = table_more_than_one_stub_column_msg )
672680
0 commit comments