プロジェクト

全般

プロフィール

Vote #68734

完了

'class' attribute of <pre> tag shouldn't be truncate

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

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2010/12/03
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
28
issue_org_id:
7033
author_id:
24761
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
26
ステータス-->[Closed]

説明

When you edit a message you can use pre tag like this :

Some preformated message

But class attribute is altered by the engine, space in attibute is considered as a break, so you can't use custom CSS classes.

For exemple, if I write

...

the resulting page source is

http://alexgorbatchev.com/SyntaxHighlighter/) which use this syntax :

...

A workaround is to use the HTML entity for non-breakable space, like this :

...

But it is really user-unfriendly.

infos :

  • ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
  • rails -v Rails 2.3.5
  • mysql --version mysql Ver 14.14 Distrib 5.1.52, for pc-linux-gnu (x86_64) using readline 5.1
  • Redmine 1.0.2.stable.4390
  • svn info ** URL: http://redmine.rubyforge.org/svn/tags/1.0.2 ** Repository Root: http://redmine.rubyforge.org/svn ** Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81 ** Revision: 4390 ** Node Kind: directory ** Schedule: normal ** Last Changed Author: edavis10 ** Last Changed Rev: 4213 ** Last Changed Date: 2010-09-27 00:43:11 +0200 (Mon, 27 Sep 2010)

Forgotten something ?
Please forgive my bad english.


journals

--------------------------------------------------------------------------------
Fixed in r4468.
--------------------------------------------------------------------------------
Merged in 1.0-stable.
--------------------------------------------------------------------------------

Admin Redmine さんが約3年前に更新

  • カテゴリText formatting_26 にセット
  • 対象バージョン1.0.5_28 にセット

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

いいね!0
いいね!0