Skip to content

Fix save#40

Merged
willwade merged 7 commits intomainfrom
fix-save
Apr 28, 2026
Merged

Fix save#40
willwade merged 7 commits intomainfrom
fix-save

Conversation

@willwade
Copy link
Copy Markdown
Collaborator

No description provided.

willwade and others added 7 commits April 27, 2026 19:16
- Load original grid.xml files instead of generating from scratch
- Preserve all original properties (ScanBlockAudioDescriptions, WordList, etc.)
- Preserve RowDefinition Height attributes
- Preserve complete cell structure (Content, Commands, CaptionAndImage, Style)
- Preserve cell attributes (@_X, @_Y, @_ColumnSpan, @_ScanBlock)
- Only update modified content (button labels, messages, etc.)

Fixes corrupted gridset files that were missing critical properties
and failing to load in Grid 3.

Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
- Convert Unix line endings to Windows (\r\n) for Grid 3 compatibility
- Add space before closing slash in self-closing tags (<tag /> vs <tag/>)
- These formatting differences were causing Grid 3 to fail parsing modified pages
- Pages now display correctly with proper button content and structure

Fixes issue where modified pages appeared as blank 6x4 grids.

Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
When updating cells with new content, remove the xsi:nil="true" attribute
from CaptionAndImage elements. This attribute tells Grid 3 that the cell
is intentionally empty and should be displayed as blank, which was causing
all modified cells to appear blank even though they had content.

Fixes issue where pages with modified buttons displayed as blank grids.

Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
When modifying cells that were originally AutoContent/WordList cells,
remove the ContentType and ContentSubType attributes so Grid 3 will
display the static Caption instead of trying to populate the cell
dynamically from a WordList.

This fixes the issue where modified cells appeared blank because Grid 3
was seeing ContentType="AutoContent" and ignoring the static Caption.

Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
For WordList AutoContent cells:
- Remove xsi:nil attribute from CaptionAndImage when adding to WordList
- Keep ContentType and ContentSubType as AutoContent/WordList
- Add new words to the page's WordList instead of converting to static cells

This allows Grid 3 to properly display WordList content instead of
showing blank cells.

Fixes issue where modified pages appeared as blank grids in Grid 3.

Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
- Properly format WordList items with nested <Text><s><r>text</r></s></Text> structure
- Add Image and PartOfSpeech elements to match Grid 3 format
- Preserve xsi:nil attribute in WordList cells (don't remove it)
- Keep AutoContent/WordList ContentType intact

This allows Grid 3 to properly display WordList content in AutoContent cells.

Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
@willwade willwade merged commit 1d54eb1 into main Apr 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant