Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caption Tag is not supported in RuleHelpXamlTranslatorFactory #5014

Open
ugras-ergun-sonarsource opened this issue Nov 3, 2023 · 0 comments
Assignees
Labels
Area: Education Technical More substantial technical task to reduce technical debt / cleanup / simplify / refactor

Comments

@ugras-ergun-sonarsource
Copy link
Contributor

ugras-ergun-sonarsource commented Nov 3, 2023

Html tag is used in some rules (e.g. "cpp.S1232") but not supported in RuleHelpXamlTranslatorFactory so those rules won't be translated to xaml correctly.

The caption tag is defined as the child of the table tag. The header can be either added by having a StackPanel with the TextBlock above (requires lookahead in Html to Xaml translation), or by adding extra row with merged cells (example)

Update:
Not seems to possible to have

TableRowGroup (caption)
Table.Columns
TableRowGroup (content)
...

But caption is defined before column definition and after table definition in html, this would require us to have lookahead/lookbehind in html parsing OR have a mechanism to defer tag conversion (currently we produce xaml for an html tag as soon as we see it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Education Technical More substantial technical task to reduce technical debt / cleanup / simplify / refactor
Projects
None yet
Development

No branches or pull requests

3 participants