Codeblocks don't preserve TAB spacing, converts them to spaces

(#4103) Bug Closed: Fixed Priority: P2 accessibility markdown messaging

Reproduction steps

  1. Write code with Tab spacing in any code editor. Copy it.
  2. Paste the code as follows in chat:
``` [your code here] ```
  1. Send and highlight result.

Expected behaviour

Preserved indentation as tab spaces after sending
		move.w	(v_limitright2).w,d0
		rts

Actual behaviour

Tab spacing / indentation has been turned into spaces, annoys developers
        move.w    (v_limitright2).w,d0
        rts

Build information

Canary Desktop 2026.1015.145307, Web 2026.1016.10903, Windows 10 10.0.19045 (x64), Electron 44.4.1, Chrome 152.0.7977.78, Node 24.21.0, Locale en-US
  1. Tarek changed the status from Awaiting confirmation to Fixed
  1. The pull request fluxer#3896 mentions this post Merged

3 comments

Sign in with Fluxer to comment and vote.
Comment by Fullest
FullestReviewer 2 votes 1 reply
Status changed from Needs triage to Confirmed
CR: Canary Desktop 2026.1018.183012, Web 2026.1018.183012, Linux 7.2.10-200.fc44.x86_64 (x64), Electron 44.4.1, Chrome 152.0.7977.78, Node 24.21.0, Locale en-US There may be a question of intent, but I can at least confirm the behavior. As I understand this issue: while preserving tabs is a net positive for accessibility, the main reason for that is because tab-width is customizable in text editors. We don't have that here, and Fluxer isn't a text editor. However, this automatic conversion of tabs into spaces could have accessibility implications if developers use Fluxer to share code with one another, as the tabs are then lost in translation.
Comment by Chai
Chai 2 votes
I don't think tab-width customization is essential, but Fluxer is making the decision that 1 tab = 4 spaces by converting it
Comment by Rex
RexSystem 1 vote
Status changed from Confirmed to Awaiting confirmation
This should be fixed in the current version (web 2026.1113.44451, desktop 2026.1113.52631). Could you check and tell us if it still happens?