amoghrajesh opened a new issue, #47675:
URL: https://github.com/apache/airflow/issues/47675
### Apache Airflow version
main (development)
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
When i try to copy the code from the web UI for a DAG, it copies the line
number along with it, which shouldnt be the case. This is only for Safari, not
for Google Chrome.
Example:
```
1from airflow.models.dag import DAG
2from pendulum import datetime
3
4from airflow.providers.standard.operators.python import PythonOperator
5
6
7def handler():
8 print("Hello from the python operator!!")
9
10with DAG(
11 dag_id="extra_links_plugin",
12 start_date=datetime(2022, 11, 1),
13 schedule=None,
14 catchup=False,
15 tags=["extra_links"],
16):
17
18 call_api_simple = PythonOperator(
19 task_id="call_api_simple",
20 python_callable=handler,
21 )
```

### What you think should happen instead?
Line number shouldnt be copied.
### How to reproduce
- Just run breeze airflow or venv airflow on Safari
- Go to the DAG => "Code" tab and try copying it
### Operating System
NA
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]