Skip to content

Conversation

@anaslari23
Copy link

@anaslari23 anaslari23 commented Jan 9, 2026

This PR implements support for the ${value} placeholder in the href attribute of table columns in BenchExec. This allows users to create dynamic hyperlinks that reference the content of the current table cell.

Changes

  • Updated _create_link in benchexec/tablegenerator/htmltable.py to support ${value} substitution.
  • Passed cell values from prepare_value and clean_up_results to the link generator.
  • Maintained backward compatibility for static strings and existing variables like ${inputfile_name}.
  • Added a focused unit test in benchexec/tablegenerator/test_href_substitution.py to verify the substitution logic.

Examples

Users can now use the following in their table definitions:
<column title="witness" href="links/${value}">wit</column>

This will replace ${value} with the raw value of the cell for each row.

Fixes #1217

Implement support for ${value} placeholder in the href attribute of
table columns. This allows dynamic hyperlinks that reference the content
of the current table cell.

- Added support for ${value} substitution in _create_link.
- Updated prepare_value and clean_up_results to pass cell values.
- Maintained backward compatibility for static strings and other variables.
- Added unit test to verify substitution logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Hyperrefs in table-generator tables

1 participant