プロジェクト

全般

プロフィール

Vote #76572

完了

Contents inside <pre> are not rendered as monospace font in Chrome for Mac

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
90
issue_org_id:
20372
author_id:
332
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Although contents inside @pre@ elements are expected to be rendered as monospace font, but san-serif fonts are used for them when accessing Redmine with Chrome for Mac.

This can be fixed by setting CSS font-family.

current trunk:
A proportional font is used to show source code. 4 spaces indentation looks like 2 or 3 spaces. Undesirable.

!{border: 1px solid #ddd}without-patch.png!

with the patch:

Source code should be rendered like this.

!{border: 1px solid #ddd}with-patch.png!

This patch adds the following line to the stylesheet.

pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}

This covers many operating systems.

  • Consolas: included with windows
  • Menlo: included with Mac and iOS
  • Liberation Mono: included with Ubuntu

journals

Let's include this fix in the next release.
--------------------------------------------------------------------------------
Patch committed, thanks.
--------------------------------------------------------------------------------
Thanks for merging!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,20407,Monospace font-family values are differ between application.css and scm.css
relates,Closed,32170,Text enclosed in pre tag in Wiki formatting reference is not displayed in monospaced font in Chrome

Admin Redmine さんが3年以上前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン3.1.0_90 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0