Project

General

Profile

Actions

Defect #34283

open

Text in code / preformatted blocks renders incorrrectly in Issue List

Added by Andrew Mo about 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues list
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Code / preformatted text within (for example) the Description renders correctly on the Issue Detail screen, but not when the Description field is displayed on the Issue list screen. Problem occurs with both Markdown & Textile on both my own test installation as well as Redmine.org.

For example the following will be incorrectly displayed in the Issue List on one line:

line 1
   Indented line 2
      Further indented line 3
   Indented line 4
Line 5

And the following code block from the Redmine Textile Guide will display each word of code on its own line:

# The Greeter class - Ruby
class Greeter
  def initialize(name)
    @name = name.capitalize
  end

  def salute
    puts "Hello #{@name}!" 
  end
end

A screenshot of how it renders in my Issue List is attached. The first example looks like a CSS problem. This is using Textile and the Default theme.

My Environment:
Redmine version 4.1.1.stable
Ruby version 2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
Rails version 5.2.4.2
Environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp

SCM:
Mercurial 4.5.3
Git 2.17.1

Filesystem
Redmine plugins:
redmine_env_auth 1.1
redmine_language_change 0.1.0
redmine_wiki_lists 0.0.9


Files

Example.png (14.9 KB) Example.png Corresponding screenshot of Issues List Andrew Mo, 2020-11-18 10:22
Example-Redmine_org.png (9.73 KB) Example-Redmine_org.png Corresponding screenshot of Issues List on Redmine.org Andrew Mo, 2020-11-18 10:26
Actions #1

Updated by Andrew Mo about 4 years ago

So I've confirmed it also renders wrongly on Redmine.org, though the code example renders differently to our test site. Attached is how it looks in the Issues List on Redmine.org

Actions #2

Updated by Go MAEDA almost 4 years ago

Andrew Mould wrote:

So I've confirmed it also renders wrongly on Redmine.org, though the code example renders differently to our test site. Attached is how it looks in the Issues List on Redmine.org

Could you post the URL of redmine.org? I could not find the page that rendered incorrectly on www.redmine.org.

Actions #3

Updated by Andrew Mo almost 4 years ago

Actions #4

Updated by Go MAEDA almost 4 years ago

  • Category changed from Text formatting to Issues list
Actions

Also available in: Atom PDF