Skip to content

Keep empty documentation empty in Libdoc HTML - #5880

Open
kuldeepsisodiya wants to merge 1 commit into
robotframework:masterfrom
kuldeepsisodiya:fix/libdoc-empty-documentation
Open

kuldeepsisodiya wants to merge 1 commit into
robotframework:masterfrom
kuldeepsisodiya:fix/libdoc-empty-documentation

Conversation

@kuldeepsisodiya

Copy link
Copy Markdown

Summary

Libdoc's HTML model gets nonempty wrappers for absent return and argument documentation in reST and plain text. The browser sees those wrappers as content and can show empty sections and rows.

Keep empty documentation strings empty when converting the Libdoc model to HTML. The regression test checks both the return field and the argument fields for each format and verifies that the keyword documentation is still present.

Closes #5879.

Validation

  • The new regression failed on unchanged master for both reST and plain text and passed with the fix.
  • All 2,457 unit tests and all 459 Libdoc acceptance tests passed on Python 3.13.
  • Generated both HTML variants with Libdoc and checked the embedded model.
  • The project's formatting task and git diff --check passed.

Copilot AI balanced review requested due to automatic review settings November 30, 2026 15:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
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.

Libdoc shows an empty "Returns" section (and empty argument doc rows) for every keyword when the doc format is reST

2 participants