Repository navigation
feat: conditional formatting shown - #196
Merged
Merged
Conversation
…ut again after each edit
…cells, and compare as LibreOffice does
Member
Author
|
Review fixes are in the second commit. I measured LibreOffice's comparison rules before changing them. I built a probe sheet and exported it to HTML through LibreOffice, then read the cell colours. Results:
Critical
Important
Minors
Left alone: |
This was referenced Nov 24, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #157
doc/sheet/conditional.rsreads a table'scalcext:conditional-formats, or the cells'style:mapwhere a table has none.ConditionalFormats::read(table)andstyle_for(sheet, row, column, value, cells)give the style of the first condition that holds.= != < > <= >=,betweenandnot-between(inclusive),formula-iswith references relative tobase-cell-address(moved byformula::shifted), andbegins-with,ends-with,contains-textandnot-contains-text(case-insensitive). Any other condition never matches.SheetDocument::shown_stylelays the applied style overcell_style. The grid, the column fit and the PDF draw with it. Format cells and the mark keys keep reading the cell's own style.corpus/libreoffice/conditional.odswas written by LibreOffice, which saves both forms.style_fortakes the workbook's cells as well, since formula conditions read them.