Skip to content

Commit

Permalink
fix: Formatting of event annotation output
Browse files Browse the repository at this point in the history
  • Loading branch information
bmtcril committed Feb 20, 2024
1 parent 541f1f7 commit f4fbc71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code_annotations/contrib/sphinx/extensions/openedx_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ def iter_nodes(self):

event_section = nodes.section("", ids=[f"openedxevent-{event_type}"])
event_section += nodes.title(text=event_type, ids=[f"title-{event_type}"])
event_section += nodes.paragraph(text=f"Description:"
event_section += nodes.paragraph(text=f"Description: "
f"{event_description}")
event_section += nodes.paragraph(" ", "Signal name:", event_name_literal)
event_section += nodes.paragraph("", "Signal name: ", event_name_literal)
if event_key_field:
event_section += nodes.paragraph(
" ",
"",
"Event key field: ",
event_key_literal
)
event_section += nodes.paragraph(" ", "Event data:", event_data_literal)
event_section += nodes.paragraph("", "Event data: ", event_data_literal)
event_section += nodes.paragraph(
text=f"Defined at: {event['filename']} (line"
f" {event['line_number']})"
Expand Down

0 comments on commit f4fbc71

Please sign in to comment.