Skip to content

Conversation

@ishikawa
Copy link
Owner

This PR updates the documentation guidelines to use monospace formatting for programming terms. The changes improve readability and consistency in the documentation.

Key changes:

  • Modified the USER_PROMPT in sum_diff/init.py
  • Added instructions to use backticks (`) for enclosing programming language keywords, identifiers, library class names, and constants
  • Updated the PR title and description guidelines to include monospace formatting
  • Added an example output section to demonstrate proper usage

The changes aim to enhance the clarity of documentation by visually distinguishing programming terms from regular text. This will make it easier for developers to identify and understand code-related elements within the documentation.

Implementation details:

  • Backticks (`) are used for inline code formatting in Markdown
  • The guidelines now explicitly mention using monospace for programming terms in both PR titles and descriptions

These updates will help maintain a consistent style across all documentation and improve the overall quality of Pull Request submissions.

This commit adds XML special character escaping functionality to the text-to-XML conversion process in the `sum_diff/__init__.py` file. The changes ensure that the generated XML is well-formed and prevents parsing errors caused by unescaped special characters.

Main changes:
- Import the `re` module for regular expression operations.
- Implement character escaping for '&', '<', and '>' symbols in the generated XML text.
- Add an unescaping step for specific XML tags to maintain the correct structure.

These changes improve the robustness of the XML generation process and reduce the likelihood of XML parsing errors in subsequent steps.
@ishikawa ishikawa merged commit 3548085 into main Jul 27, 2024
@ishikawa ishikawa deleted the use-monospace-for-programming-term branch July 27, 2024 02:35
ishikawa added a commit that referenced this pull request Jul 27, 2024
This PR updates the documentation guidelines to use monospace formatting
for programming terms. The changes improve readability and consistency
in the documentation.

Key changes:
- Modified the USER_PROMPT in sum_diff/__init__.py
- Added instructions to use backticks (`) for enclosing programming
language keywords, identifiers, library class names, and constants
- Updated the PR title and description guidelines to include monospace
formatting
- Added an example output section to demonstrate proper usage

The changes aim to enhance the clarity of documentation by visually
distinguishing programming terms from regular text. This will make it
easier for developers to identify and understand code-related elements
within the documentation.

Implementation details:
- Backticks (`) are used for inline code formatting in Markdown
- The guidelines now explicitly mention using monospace for programming
terms in both PR titles and descriptions

These updates will help maintain a consistent style across all
documentation and improve the overall quality of Pull Request
submissions.
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.

2 participants