Ignore indentation when rendering code listing
- Dominant language
- No language data
- Stars
- 42
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### Description
I used lstlisting environment in listings package to render my Python code in my publication. However, it seems like arxiv's HTML renderer ignore all all the indentation (render as 1 space).
### (Optional:) Please add any files, screenshots, or other information here.
## HTML
## PDF
### (Required) What is this issue most closely related to? Select one.
Formula
### Internal issue ID
7588106b-952a-41a3-9271-7acadf16ae99
### Paper URL
https://services.arxiv.org/html/submission/5728767/view
### Browser
Chrome/126.0.0.0
### Device Type
Desktop
Contributor guide
Research direction
Start by opening the linked paper URL in Chrome and comparing the HTML rendering of the listings package's lstlisting code with the PDF, focusing on Python indentation. The work is done when nested indentation is preserved in the HTML code listing instead of being rendered as a single space.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex, python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100