プロジェクト

全般

プロフィール

Vote #79231

完了

Syntax highlighter does not work if language name is single-quoted

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

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

0%

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

説明

Please see the screenshot below. Syntax highlighter does not work if "Text formatting" is set to "Textile" and the language name is enclosed by single quotation marks. The Textile formatter should accept single quotation marks as well as double quotation marks.

!{width: 252px; border: 1px solid #ccc;}.screenshot@2x.png!


journals

I think it is natural to use single quotes.
I wrote a patch to fix this defect.
--------------------------------------------------------------------------------
Mizuki ISHIKAWA wrote:
> I think it is natural to use single quotes.
> I wrote a patch to fix this defect.

I would recommend to add a tests for this single quotes case.
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> Mizuki ISHIKAWA wrote:
> > I think it is natural to use single quotes.
> > I wrote a patch to fix this defect.
>
> I would recommend to add a tests for this single quotes case.
I forgot to write a test.
I appreciate your advice.

This is the patch that added the test.
--------------------------------------------------------------------------------
LGTM. Setting target version to 3.3.8.
--------------------------------------------------------------------------------
Committed to the trunk and stable branches. Thank you for fixing this issue.
--------------------------------------------------------------------------------

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


related_issues

duplicates,Closed,14443,Property class in <code> inside <pre> does not accept a single quotes

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

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

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

いいね!0
いいね!0