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

   This solves #66143 'react-syntax-highlighter' generates line numbers as 
`'span>' elements, each ending with '\n'. If you are selecting and copying text 
manually, these
   spans are included in the selection, and an extra blank line is added after 
every line of code on paste.
   Added 'LineNumberStyle={{ userSelect: "none" }}' to 'SyntaxHighlighter' in 
'RenderedTemplates'.tsx' so that line number spans are ignored in text 
selection. The copy button is unaffected, it copies the raw value directly.
   > Part of this implementation was aided by an AI assistant named Claude 
(claude.ai).
   


-- 
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