wp-cli / handbook

📖 Complete documentation for WP-CLI
https://make.wordpress.org/cli/handbook/
MIT License
186 stars 320 forks source link

Fix Parsing of Multiline Argument Descriptions #527

Open shreya0204 opened 1 week ago

shreya0204 commented 1 week ago

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.