Skip to content

Commit

Permalink
Solution candidate for #1176
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Jun 26, 2024
1 parent ada6e70 commit 957831c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/CreeDictionary/CreeDictionary/paradigm/panes.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,10 @@ def fill(self, forms: Mapping[str, Collection[str]]) -> ContentRow | CompoundRow
# A row with all columns having a single cell:
return ContentRow(one(cells) for cells in columns)

# Create compound rows
# Before creating compound row, fillup first line with emptyness
columns[0] = columns[0] + [SuppressOutputCell()] * (num_rows_needed - len(columns[0]))

# Now create compound rows
rows = []
for row_num in range(num_rows_needed):
cells = [cell_if_exists_or_no_output(col, row_num) for col in columns]
Expand Down Expand Up @@ -805,7 +808,7 @@ def cell_if_exists_or_no_output(col: Sequence[Cell], row_num: int):
try:
return col[row_num]
except IndexError:
return SuppressOutputCell()
return EmptyCell()


def adjust_row_span(cell: Cell, span: int) -> Cell:
Expand Down

0 comments on commit 957831c

Please sign in to comment.