Project

General

Profile

Actions

Bug #1514

closed

Incompatible css class with rouge styles

Added by liaham about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Affected Version:
Compatible Redmine Version:

Description

🐛 Thanks for taking the time to fill out this bug report! 😊

What did you expect?

I expect the plugin to be fully compatible with Redmine.

What has happened instead?

Using this plugin with rouge styles changes code highlights similar to the example below:

module 
MyRedminePlugin
  class 
MyModelPresenter < AdvancedPluginHelper::BasePresenter
    presents :my_model  # you can use 'my_model' as any instance variable of your model
    
    def helper_method_for_my_model
      # method body here
    end
  end
end

What could be a possible solution?

The solution is to rename the css class .nn since it clashes with the rouge class .nn which represents the Name.Namespace.

How can we reproduce the problem?

Type some ruby code in a wiki text field.

In what environment are you running the plugin?

Environment:
  Redmine version                5.0.4.stable
  Ruby version                   3.1.3-p185 (2022-11-24) [x86_64-linux-musl]
  Rails version                  6.1.7
  Environment                    development
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Circle (includes JavaScript)
SCM:
  Subversion                     1.14.2
  Mercurial                      6.3.1
  Git                            2.38.4
  Filesystem                     
Redmine plugins:
  advanced_plugin_helper         0.4.0
  redmine_news_notification      1.0.4

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari

Relevant log output

# nothing relevant

Actions #1

Updated by liaham about 2 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF