Project

General

Profile

Actions

Defect #28793

open

Redmine replaces tabs with spaces in code blocks

Added by Anton Shepelev almost 6 years ago. Updated over 3 years ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Regardless of whether I use Markdown or Textile, Redmine always replaces tabs with spaces in code blocks, which makes the code read-only, i.e. one cannot copy and paste it into their program, so I have to attach source files to issues or send them in separate e-mails.

The underlying Markdown and Textile text is correct but is rendered into HTML wrong.

Code blocks should present code as it is written: spaces should be spaces and tabs should be tabs.

My Redmine environment:

Environment:
  Redmine version                3.4.4.stable
  Ruby version                   2.3.3-p222 (2016-11-21) [i386-mingw32]
  Rails version                  4.2.8
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.16
  Filesystem                     
Redmine plugins:
  no plugin installed


Related issues

Has duplicate Redmine - Defect #33707: Highlighted code with 'diff' format converts tabs to spaces, which breaks IDEsClosed

Actions
Actions

Also available in: Atom PDF