プロジェクト

全般

プロフィール

Vote #71632

完了

Nested textile ol/ul lists generate invalid HTML

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

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

0%

予定工数:
category_id:
11
version_id:
46
issue_org_id:
10642
author_id:
15667
assigned_to_id:
1
comments:
12
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
42
ステータス-->[Closed]

説明

My Project Description is as follows:

To track issue:
# Click on the *New Issue* link on top.
# Specify the *Tracker* as _Bug_ or _Feature_
** _Bug_ is a problem to fix.
** _Feature_ is new enhancement to the version
# Enter _Subject_ and _Description_
** For hyperlink reference to existing feature/bug, you can use the *#XX*
e.g. Bug #100 will create a link to the bug.

If I've got more than one Projects in Projects view, the next Project item (e.g. My Project 2) in the list will break.

See attached image. !Bullet-issue.png!


journals

Even lost the end of the text.

--------------------------------------------------------------------------------
Can't reproduce with current trunk. Tested with default and classic themes, using FF11.0, Chrome 18 or IE9.

!projects.png!
--------------------------------------------------------------------------------
Maybe there's some fix in between? Let me test when there's new release...
that's super fast response from jean! Cheers!
--------------------------------------------------------------------------------
No, I reproduced with trunk but with only a part of the text you posted.
--------------------------------------------------------------------------------
Etienne Massip wrote:
> No, I reproduced with trunk but with only a part of the text you posted.

Which part exactly?
--------------------------------------------------------------------------------
Well, the last part I think but I'll check again.
--------------------------------------------------------------------------------
Got it.
--------------------------------------------------------------------------------
This is a textile issue. This text generates invalid html (closing tags at the end are in reverse order).

Here is a patch that fixes it:

<pre>
Index: lib/redcloth3.rb
===================================================================
--- lib/redcloth3.rb (revision 9405)
+++ lib/redcloth3.rb (working copy)
@@ -585,9 +585,10 @@
last_line = line_id
end
if line_id - last_line > 1 or line_id == lines.length - 1
- depth.delete_if do |v|
+ depth.reverse.each do |v|
lines[last_line] << "</li>\n\t</#{ lT( v ) }l>"
end
+ depth = []
end
end
lines.join( "\n" )
</pre>

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

--------------------------------------------------------------------------------
Fixed in r9430.
--------------------------------------------------------------------------------
Typo.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------

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

  • カテゴリProjects_11 にセット
  • 対象バージョン1.4.1_46 にセット

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

いいね!0
いいね!0