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

Improve some comments related to topicpull XSLT parameters #4176

Merged

Conversation

chrispy-snps
Copy link
Contributor

Description

This pull request adds/updates some parameter-related comments in the topicpullImpl.xsl file.

Motivation and Context

This started when I noticed an outdated comment that a $tbltitle template parameter was not used (it is). After fixing that, I also added/updated some other parameter-related comments while tracing through the code.

How Has This Been Tested?

All tests pass. I also manually tested <xref> and <link> references to <table> and <figure> elements with the parameters set to both values.

Type of Changes

These are comments only; no functionality is affected.

Documentation and Compatibility

No documentation or release notes are needed.

Checklist

I tried to follow the format of existing comments in other preprocessing stylesheets.

@chrispy-snps chrispy-snps changed the title improve some comments related to topicpull XSLT parameters Improve some comments related to topicpull XSLT parameters Apr 25, 2023
@chrispy-snps chrispy-snps force-pushed the enhancement/topicpull-param-comments branch from 413cb00 to 3e0eaab Compare April 25, 2023 23:35
@jelovirt jelovirt force-pushed the enhancement/topicpull-param-comments branch from 3e0eaab to 9fcb0d2 Compare April 26, 2023 14:25
@robander robander self-requested a review April 26, 2023 14:25
robander
robander previously approved these changes Apr 26, 2023
<xsl:param name="TABLELINK">NUMBER</xsl:param>
<xsl:param name="FIGURELINK">NUMBER</xsl:param>
<xsl:param name="remove-broken-links" as="xs:string?"/>
<xsl:param name="TABLELINK" as="xs:string" select="'NUMBER'"/> <!-- DITA-OT parameter args.tablelink.style: 'NUMBER' or 'TITLE' -->
Copy link
Member

@robander robander Apr 26, 2023

Choose a reason for hiding this comment

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

@chrispy-snps I marked this approved because I'm fine with the code comments - but would it be possible to move the code comment to the line above? I worry about a future code linting tool that will move the comment to the next line, and you end up with

<xsl:param name="FIGURELINK" as="xs:string" select="'NUMBER'"/> 
<!-- DITA-OT parameter args.figurelink.style: 'NUMBER' or 'TITLE' -->
<xsl:param name="remove-broken-links" as="xs:string" select="'false'"/>

Copy link
Member

Choose a reason for hiding this comment

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

Updated to request that change -- other than that LGTM

chrispy-snps and others added 2 commits January 12, 2024 10:15
Signed-off-by: chrispy <chrispy@synopsys.com>
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>
@jelovirt jelovirt force-pushed the enhancement/topicpull-param-comments branch from 801a7ad to 3521e2a Compare January 12, 2024 08:22
@jelovirt jelovirt added priority/low Low priority issue enhancement Changes to an existing feature labels Jan 12, 2024
Copy link
Member

@jelovirt jelovirt left a comment

Choose a reason for hiding this comment

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

LGTM

@jelovirt jelovirt merged commit 08c05c0 into dita-ot:develop Jan 12, 2024
3 checks passed
@jelovirt jelovirt added this to the Next milestone Jan 12, 2024
@chrispy-snps chrispy-snps deleted the enhancement/topicpull-param-comments branch January 13, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changes to an existing feature priority/low Low priority issue
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants