Defect #34283

Text in code / preformatted blocks renders incorrrectly in Issue List

Added by Andrew Mo 11 months ago. Updated 10 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues list
Target version:-
Resolution: Affected version:4.1.1

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

Example.png - Corresponding screenshot of Issues List (14.9 KB) Andrew Mo, 2020-11-18 10:22

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

History

#1 Updated by Andrew Mo 11 months 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

#2 Updated by Go MAEDA 10 months 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.

#3 Updated by Andrew Mo 10 months ago

#4 Updated by Go MAEDA 10 months ago

  • Category changed from Text formatting to Issues list

Also available in: Atom PDF