Kaap10 opened a new pull request, #76519:
URL: https://github.com/apache/airflow/pull/76519

   AirflowConsole.print_as_table and print_as_plain_table in 
irflow-core/src/airflow/cli/simple_table.py passed column headers and cell 
values to Rich without escaping. Consequently, values or column headers 
containing Rich closing tags such as [/b] crashed the CLI command with a 
MarkupError, and strings containing bracketed text such as s3://[bucket]/path 
or [tag] silently had their bracketed sections stripped.
   
   This change escapes column headers and cell values with  ich.markup.escape 
in print_as_table and renders literal plain text in print_as_plain_table with 
markup=False, matching the behavior established in irflowctl (PR #76175). 
Dedicated unit tests are added in 
irflow-core/tests/unit/cli/test_simple_table.py.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Antigravity
   
   Generated-by: Antigravity following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to