Project

General

Profile

Actions

Defect #20910

closed

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

Added by Serguei Tarassov about 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Wiki
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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.

Files

0002-Nest-the-exported-html-table-of-contents.patch (4.49 KB) 0002-Nest-the-exported-html-table-of-contents.patch Mizuki ISHIKAWA, 2018-03-08 06:20
after.png (40.6 KB) after.png Mizuki ISHIKAWA, 2018-03-14 06:25
before.png (40.1 KB) before.png Mizuki ISHIKAWA, 2018-03-14 06:25
20910-v2.patch (4.08 KB) 20910-v2.patch Go MAEDA, 2019-05-06 15:59

Related issues

Related to Redmine - Feature #550: Function to export whole wikiReopened

Actions
Related to Redmine - Patch #16446: Generate full URLs to images and linked pages in the Wiki HTML exportClosedGo MAEDA

Actions
Actions #1

Updated by Serguei Tarassov about 9 years ago

Related feature request #550

Actions #2

Updated by Toshi MARUYAMA about 9 years ago

  • Related to Feature #550: Function to export whole wiki added
Actions #3

Updated by Mizuki ISHIKAWA over 6 years ago

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

  → 0002-Nest-the-exported-html-table-of-contents.patch

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

Actions #4

Updated by Go MAEDA over 6 years ago

  • Related to Patch #16446: Generate full URLs to images and linked pages in the Wiki HTML export added
Actions #5

Updated by Go MAEDA over 6 years ago

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.

Actions #6

Updated by Mizuki ISHIKAWA over 6 years ago

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
Actions #7

Updated by Go MAEDA over 6 years ago

  • File deleted (0001-Change-the-file-path-of-html-image-to-be-exported-to.patch)
Actions #8

Updated by Go MAEDA over 6 years ago

  • Target version set to Candidate for next major release
Actions #9

Updated by Go MAEDA over 5 years ago

Updated the patch for the current trunk.

Actions #10

Updated by Go MAEDA over 5 years ago

  • Subject changed from Wiki HTML export bugs to Hierarchy in TOC is not preserved when a Wiki page is exported to HTML
Actions #11

Updated by Go MAEDA over 5 years ago

  • Subject changed from Hierarchy in TOC is not preserved when a Wiki page is exported to HTML to Hierarchy in TOC is not preserved when Wiki index is exported to HTML
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

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

Actions

Also available in: Atom PDF