@@ -31,17 +31,19 @@ def create_presentation_row(row: pd.Series) -> dict:
3131 """Create a single presentation data row."""
3232 filename = generate_filename (row ["Last name" ], row ["Title" ])
3333 return {
34- " ID" : row ["Slot" ],
35- " Title" : f"[{ row ['Title' ]} ](abstracts/{ filename } )" ,
36- " Presenter" : f"{ row ['First name' ]} { row ['Last name' ]} " ,
37- " Organisation" : row ["Affiliation" ],
34+ "ID" : row ["Slot" ],
35+ "Title" : f"[{ row ['Title' ]} ](abstracts/{ filename } )" ,
36+ "Presenter" : f"{ row ['First name' ]} { row ['Last name' ]} " ,
37+ "Organisation" : row ["Affiliation" ],
3838 }
3939
4040
4141def process_session_group (session_id : str , group : pd .DataFrame , template : str , prefix : str ) -> Tuple [TimeSlot , str ]:
4242 """Process a session group into formatted markdown."""
4343 time_slot = session_to_time (session_id )
44- table = pd .DataFrame ([create_presentation_row (row ) for _ , row in group .iterrows ()]).to_markdown (index = False )
44+ table = pd .DataFrame ([create_presentation_row (row ) for _ , row in group .iterrows ()]).to_markdown (
45+ index = False , colalign = ["left" , "left" , "left" , "left" ]
46+ )
4547
4648 return (
4749 time_slot ,
@@ -152,15 +154,15 @@ def create_poster_table(df: pd.DataFrame, session_id: str) -> str:
152154
153155 data = [
154156 {
155- " ID" : str (row ["Abstract ID" ]),
156- " Title" : f"[{ row ['Title' ]} ](abstracts/{ generate_filename (row ['Last name' ], row ['Title' ])} )" ,
157- " Presenter" : f"{ row ['First name' ]} { row ['Last name' ]} " ,
158- " Affiliation" : row ["Affiliation" ],
157+ "ID" : str (row ["Abstract ID" ]),
158+ "Title" : f"[{ row ['Title' ]} ](abstracts/{ generate_filename (row ['Last name' ], row ['Title' ])} )" ,
159+ "Presenter" : f"{ row ['First name' ]} { row ['Last name' ]} " ,
160+ "Affiliation" : row ["Affiliation" ],
159161 }
160162 for _ , row in filtered .iterrows ()
161163 ]
162164
163- return pd .DataFrame (data ).to_markdown (index = False )
165+ return pd .DataFrame (data ).to_markdown (index = False , colalign = [ "left" , "left" , "left" , "left" ] )
164166
165167
166168def organize_by_day (sessions : List [Tuple [TimeSlot , str ]]) -> Tuple [Dict [str , List [str ]], Dict [str , TimeSlot ]]:
0 commit comments