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

   <!-- SPDX-License-Identifier: Apache-2.0
         https://www.apache.org/licenses/LICENSE-2.0 -->
   
   Newlines in string XCom values were shown as spaces in the XCom tab.
   
   `renderTextWithLinks` in `XComEntry.tsx` split the text on `\s+` and joined
   the parts back with a single space, so newlines were removed before 
rendering.
   
   Changes:
   - Split with a capture group (`/(\s+)/`) so whitespace is kept.
   - Add `whiteSpace="pre-wrap"` so the browser shows the newlines.
   - Add `maxHeight` with scrolling for very long values, as suggested in the 
issue.
   - Add `overflowWrap="anywhere"` so long strings without spaces don't stretch 
the table.
   - Add tests for newlines and for links inside multi-line values.
   
   This PR only covers the XCom tab. The HITLOperator body part of the issue is 
not
   included.
   
   Before:
   <img width="1920" height="1080" alt="Screenshot 2026-10-02 221137" 
src="https://github.com/user-attachments/assets/235ec011-2e9c-4044-8fec-0f914b13eb6a";
 />  
   
   
   After:
   <img width="1920" height="1080" alt="Screenshot 2026-10-02 221325" 
src="https://github.com/user-attachments/assets/13ff54c3-e3a2-4812-b58b-c7ffbedfafbd";
 />  
   
   
   
   
   related: #74018
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude 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