arXiv / arXiv/html_feedback

Ignore indentation when rendering code listing

Open
#1,712 1 comment 0 reactions 0 assignees View on GitHub
bug listings
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
Screenshot 2024-07-13 at 12 13 58 PM

## PDF
Screenshot 2024-07-13 at 12 14 29 PM

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.