プロジェクト

全般

プロフィール

Vote #76789

完了

Hierarchy in TOC is not preserved when Wiki index is exported to HTML

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

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

0%

予定工数:
category_id:
1
version_id:
127
issue_org_id:
20910
author_id:
128356
assigned_to_id:
332
comments:
11
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
77
ステータス-->[Closed]

説明

When exporting HTM from Wiki (from index page) the resulting document has following errors :

  • TOC items hierarchy is not supported, only one-level list is exported
  • images links are incomplete with "/redmine/xxx". Full path to images is expected to see them.

journals

Related feature request #550
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I wrote a patch to solve these two problems.
(It may be better to divide the issues...)

> images links are incomplete with "/redmine/xxx". Full path to images is expected to see them.
  → attachment:0001-Change-the-file-path-of-html-image-to-be-exported-to.patch

> TOC items hierarchy is not supported, only one-level list is exported
  → attachment:0002-Nest-the-exported-html-table-of-contents.patch

By applying the patch, I think the exported HTML will be easier to see.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Mizuki ISHIKAWA wrote:
> > images links are incomplete with "/redmine/xxx". Full path to images is expected to see them.
>   → attachment:0001-Change-the-file-path-of-html-image-to-be-exported-to.patch

The patch is identical to #16446, which I have just committed as r17229. Let's discuss the patch 0002 on this issue.

--------------------------------------------------------------------------------
Go MAEDA wrote:
> The patch is identical to #16446, which I have just committed as r17229. Let's discuss the patch 0002 on this issue.

I did not notice that the same patch already exists.
I am glad that the image link has been changed to a Full path.

Patch 0002 changes the heading of exported wiki HTML as follows. (Nest wiki titles)
|before|after|
|!before.png!|!after.png!|
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
Updated the patch for the current trunk.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed the patch with slight changes. Thank you for the fix.
--------------------------------------------------------------------------------


related_issues

relates,Reopened,550,Function to export whole wiki
relates,Closed,16446,Generate full URLs to images and linked pages in the Wiki HTML export

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

  • カテゴリWiki_1 にセット
  • 対象バージョン4.1.0_127 にセット

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

いいね!0
いいね!0