Skip to content

bug fix#27

Merged
zaihuaji merged 1 commit into
mainfrom
hua-work-miscs
May 5, 2026
Merged

bug fix#27
zaihuaji merged 1 commit into
mainfrom
hua-work-miscs

Conversation

@zaihuaji

@zaihuaji zaihuaji commented May 4, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 tightens up RST generation in pg_rst.py to avoid runtime errors when parsing examples/tables from source docs, and bumps the package version to publish the fix.

Changes:

  • Skip appending empty lines when constructing an example title (avoids indexing into empty strings for line[-1]).
  • Make build_rst_simple_table() tolerant of ragged rows by substituting missing columns with "" instead of raising IndexError.
  • Bump project version from 2.0.13 to 2.0.14.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/rda_python_miscs/pg_rst.py Hardens example title parsing and list-table generation against malformed/irregular input.
pyproject.toml Version bump to release the fix.

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

Comment thread src/rda_python_miscs/pg_rst.py
@zaihuaji zaihuaji merged commit 61b93d6 into main May 5, 2026
6 checks passed
@zaihuaji

zaihuaji commented May 5, 2026

Copy link
Copy Markdown
Collaborator Author

save

1 similar comment
@zaihuaji

zaihuaji commented May 5, 2026

Copy link
Copy Markdown
Collaborator Author

save

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