プロジェクト

全般

プロフィール

Vote #79514

未完了

There should be a way to avoid adding paragraph to a Textile block

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

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

0%

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

説明

Currently I can see no appropriate way of avoiding adding

block to any Textile code. Any text enclosed with \n is currently being put to the

tag.

In php textile it is possible to avoid this by adding a space character in the beginning of the line (see https://txstyle.org/doc/2/paragraphs):

a line beginning with a space will be left untouched, and not wrapped in

...

tags

One of the cases where the issue is important is when using the @

マクロ include の実行中にエラーが発生しました (ページが見つかりません)
@ macro. Included pages are still enclosed in

tag and this markup is usually wrong, because the included page is usually not a single paragraph, but contains some blocks, headers, etc itself.

Currently there is a bug (#13695) in currently used Redcloth3, which makes a workaround for the described issue. When you start the line with some other tag, the remaining text will not be enclosed in a paragraph:

@{{include(page)}}@

The same example can be used with the code tag instead of the pre tag which will also work this way.

This can be used as a workaround, but since Redmine is slowly moving to RedCloth4 developers must ensure that the new Textile formatter will support not enclosing text blocks into paragraphs. In a quick scan of RedCloth4 doc I can't find a way to do so. Syntax like in php textile can be used for that, where "no-paragraph" is a line started with a space character.

表示するデータがありません

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

いいね!0