プロジェクト

全般

プロフィール

Vote #64449

未完了

Allow word-wrapping in pre tags in Textile

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

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

0%

予定工数:
category_id:
10
version_id:
0
issue_org_id:
2516
author_id:
463
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I often copy and paste text that should be enclosed in @pre@ tags for issues and wiki pages. Unfortunately, if the text is too long, a scroll bar appears on the @pre@ region because of the @overflow-x: auto;@ property. It would be nice to have the option of using @pre@ with a special class to use the @white-space: pre-wrap;@ property so that this can be avoided. I've attached a patch that would allow this when using HTML like @pre class="wrap"@ in Textile. That is, if the author decides that word-wrapping is desirable when writing in Textile, they can choose it at their option.

Affected version: Redmine 0.8


journals

+1 from me!
--------------------------------------------------------------------------------
A very useful feature.

We quite often quote salient information from other forums and live chat, When included between <pre> tags the text often needs reformatting to make the lines readable, and a word wrap feature is all that is needed.

To be able to specify the maximum width would be nice too.
--------------------------------------------------------------------------------
Hello,

As far as I know, "pre" stands for "preserve", or "preformated", that means that enclosed text should be printed verbatim, without any type of processing. This is usefull for column data, or ascii arts :)

Maybe an other environment like "cite" or ""quote" makes more sens.
--------------------------------------------------------------------------------
Paul Rivier wrote:
> Hello,
>
> As far as I know, "pre" stands for "preserve", or "preformated", that means that enclosed text should be printed verbatim, without any type of processing. This is usefull for column data, or ascii arts :)
>
> Maybe an other environment like "cite" or ""quote" makes more sens.

I think you are correct.

Looking at the "Text formatting help":http://www.redmine.org/help/wiki_syntax.html there does not appear to be tags that allow "quote" or "cite" However, ">"
>>
> Hello,

does appear to do it as in the quote of your last message. Maybe some expansion in the help, or a button in the editor would help the average user.
--------------------------------------------------------------------------------
This would be very useful (a try to recover this thread), when you want to paste a large output into redmine wiki
--------------------------------------------------------------------------------

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

  • カテゴリUI_10 にセット

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

いいね!0
いいね!0