Spaces:
Running
Running
Update app.py
Browse files18 unmodified lines19202122222324259 unmodified lines35363738383940411 unmodified line434445464647484910 unmodified lines606162636364656618 unmodified lines table_chunks = calculate_clean_chunks(words_data) for idx, current_chunk in enumerate(table_chunks): # Start table # Start Table for this chunk html_output.append(f'<table style="{table_style}" align="center" cellpadding="5" cellspacing="0">') html_output.append(' <colgroup>') for _ in range(total_slots):9 unmodified lines current_chunk.append({"hebrew": " ", "transliteration": " ", "translation": " ", "morphology": " "}) allocated_slots += 1 # ROW 1: Hebrew # Row 1: Hebrew html_output.append(' <tr style="height: auto; line-height: 1.0 !important;">') if is_first: html_output.append(f' <td style="{heading_cell_style}">{reference}</td>')1 unmodified line html_output.append(f' <td style="{hebrew_cell_style}">{word.get("hebrew", " ")}</td>') html_output.append(' </tr>') # ROW 2: English # Row 2: English html_output.append(' <tr style="height: auto; line-height: 1.0 !important;">') if is_first: formatted_manuscript = manuscript.replace(" ", "<br>") if " " in manuscript else manuscript10 unmodified lines html_output.append(f' <td style="{english_cell_style}"> </td>') html_output.append(' </tr>') # Close table and add spacer # End Table + Spacer html_output.append('</table><br><br>')
html_output.append('</div>')app.py+4-4