Skip to content

Add the sub_values() function for subbing in arbitrary text in body cells based on value or match#1066

Merged
cscheid merged 39 commits intomasterfrom
sub-value
Sep 27, 2022
Merged

Add the sub_values() function for subbing in arbitrary text in body cells based on value or match#1066
cscheid merged 39 commits intomasterfrom
sub-value

Conversation

@rich-iannone
Copy link
Member

@rich-iannone rich-iannone commented Sep 23, 2022

This adds the sub_values() function which allows for more flexibility in substituting text based on cell data values (different than text_transform(), which occurs later in the render process and operates on fully formatted text). This function allows for text to replace either exact values the user specifies, those (character-based) values found though regex matching, or values determined through a user-defined function. Plenty of tests were added and the PR also fixes some deficiencies discovered in LaTeX and RTF escaping.

Fixes: #703

@rich-iannone rich-iannone marked this pull request as ready for review September 27, 2022 18:16
Copy link
Member

@cscheid cscheid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cscheid cscheid merged commit c270680 into master Sep 27, 2022
@rich-iannone rich-iannone deleted the sub-value branch September 27, 2022 21:39
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.

Format any cell based on value

2 participants