Skip to content

Commit

Permalink
make <frame> note more foregiving, e.g., if the Note starts with a us…
Browse files Browse the repository at this point in the history
…ername
  • Loading branch information
fzumstein committed Sep 16, 2022
1 parent 8c3dcee commit e00de84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xlwings/pro/reports/main.py
Expand Up @@ -114,7 +114,7 @@ def render_sheet(sheet, **data):
frame_indices = []
for ix, cell in enumerate(sheet.range((1, 1), (1, last_cell.column))):
if cell.note:
if cell.note.text.strip() == "<frame>":
if "<frame>" in cell.note.text:
frame_indices.append(ix)
uses_frames = True
is_single_frame = True if len(frame_indices) == 1 else False
Expand Down

0 comments on commit e00de84

Please sign in to comment.