handbook icon indicating copy to clipboard operation
handbook copied to clipboard

Fix Parsing of Multiline Argument Descriptions

Open shreya0204 opened this issue 7 months ago • 0 comments

Fixes: #477

This pull request addresses a parsing error in the WP CLI handbook where multiline argument descriptions in the Utils\http_request() method were not being handled correctly. Previously, the parser failed to recognize , as a valid character that could indicate the continuation of an argument description onto a new line.

Changes Made:

Updated the conditional check in the parsing logic. Now, the parser recognizes both { and , characters as potential indicators of a multiline argument. This ensures that argument descriptions that continue after these characters are correctly parsed and included in the documentation.

shreya0204 avatar Jul 04 '24 10:07 shreya0204