プロジェクト

全般

プロフィール

Vote #79306

完了

Edit This Section broken by formatted code

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

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

0%

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

説明

When including code formatting (``` cs) in markdown, the Edit This Section links on the page get messed up similar to defects 14188, 11133, and 11789. The link above the formatted section will open for editing a section of the page that is too large, skipping intermediate headings that should have started a new section. And the subsequent "Edit This Section" links will open wrong (later) sections of the page for editing, with the final ones giving a 404 error because the respective section just isn't being found.

# Test page
This page demonstrates how the code formatter breaks the Edit This Section links

# Section 1
This main section is editable correctly.

## SubSection 1
This subsection is editable correctly.

## SubSection 2
This section contains formatted code. Editing it opens too much content for editing.
If one removes the second passage of formatted code in the following subsection, editing this one includes even more code, even the next higher-level section!

``` cs
public bool test
{
  get
  {
     return false;
  }
}
```

## SubSection 3
This section cannot be edited properly - instead the next section is opened for editing.


``` cs
public bool test
{
  get
  {
     return false;
  }
}
```

## SubSection 4
This subsection also cannot be edited.

# Section 2
Trying to edit this section will produce a 404 error.


journals

The code formatter used is the Rogue plugin.

Unfortunately I'm not able to discern anything in the generated page source that could cause the problem.
--------------------------------------------------------------------------------
Confirmed the problem. It seems that the problem is caused when an unknown language name such as "cs" is used (plain Redmine does not support "cs").
--------------------------------------------------------------------------------
The issue cannot be reproduced in Redmine 4.1.0. Maybe fixed in #32359.
--------------------------------------------------------------------------------

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

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

  • カテゴリText formatting_26 にセット

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

いいね!0
いいね!0