Skip to content

Fix issues in adoc to HTML formatting found by Copilot review#145

Merged
james-ball-qualcomm merged 7 commits intomainfrom
144-fix-issues-found-by-copilot
Dec 3, 2025
Merged

Fix issues in adoc to HTML formatting found by Copilot review#145
james-ball-qualcomm merged 7 commits intomainfrom
144-fix-issues-found-by-copilot

Conversation

@james-ball-qualcomm
Copy link
Collaborator

No description provided.

Signed-off-by: James Ball <jameball@qti.qualcomm.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR attempts to fix AsciiDoc to HTML formatting issues and add support for nested formatting (e.g., *_bold italics_*). The changes refactor the formatting functions to use a recursive parameter and introduce a new convert_nested function to handle nested formatting markers.

Key Changes

  • Refactored constrained_format_pattern and unconstrained_format_pattern to accept a recursive parameter for nested formatting support
  • Introduced convert_nested function to recursively process formatting within already-captured content
  • Renamed and consolidated formatting functions (convert_bold, convert_italics, convert_monospaceconvert_unconstrained and convert_constrained)
  • Updated documentation to reflect the new functionality and remove obsolete examples
  • Added test cases for nested formatting in tests/norm-rule/test.yaml

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tools/create_normative_rules.rb Core implementation of nested formatting support, refactoring of formatting functions, and updated documentation
tests/norm-rule/test.yaml Added test cases for nested formatting (nested bold, bold+italics, bold+italics+monospace)
tests/norm-rule/expected/test-norm-rules.html Expected HTML output showing nested formatting conversions (contains bugs - nested formatters not converted)
tests/norm-rule/expected/test-norm-rules.json Expected JSON output with updated test case data
tests/norm-rule/expected/test-norm-rules.adoc Expected AsciiDoc output with updated test case formatting
tests/norm-rule/expected/test-norm-rules.xlsx Binary Excel file with updated test case data

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

james-ball-qualcomm and others added 5 commits December 2, 2025 17:46
Signed-off-by: James Ball <jameball@qti.qualcomm.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: james-ball-qualcomm <quic_jameball@quicinc.com>
Signed-off-by: James Ball <jameball@qti.qualcomm.com>
…d-by-copilot' into 144-fix-issues-found-by-copilot
Signed-off-by: James Ball <jameball@qti.qualcomm.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: James Ball <jameball@qti.qualcomm.com>
@james-ball-qualcomm james-ball-qualcomm merged commit 8bda051 into main Dec 3, 2025
2 checks passed
@james-ball-qualcomm james-ball-qualcomm deleted the 144-fix-issues-found-by-copilot branch December 3, 2025 15:48
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.

Fix issues found by Copilot code review of issue #142 and its PR #143.

2 participants