Defect #20910

Wiki HTML export bugs

Added by Serguei Tarassov over 2 years ago. Updated 3 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Wiki
Target version:Candidate for next major release
Resolution: Affected version:2.4.2

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.

0002-Nest-the-exported-html-table-of-contents.patch Magnifier (4.49 KB) Mizuki ISHIKAWA, 2018-03-08 06:20

after.png (40.6 KB) Mizuki ISHIKAWA, 2018-03-14 06:25

before.png (40.1 KB) Mizuki ISHIKAWA, 2018-03-14 06:25


Related issues

Related to Redmine - Feature #550: Function to export whole wiki Reopened
Related to Redmine - Patch #16446: Generate full URLs to images and linked pages in the Wiki... Closed

History

#1 Updated by Serguei Tarassov over 2 years ago

Related feature request #550

#2 Updated by Toshi MARUYAMA over 2 years ago

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

#3 Updated by Mizuki ISHIKAWA 4 months 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.

#4 Updated by Go MAEDA 4 months ago

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

#5 Updated by Go MAEDA 4 months 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.

#6 Updated by Mizuki ISHIKAWA 3 months 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

#7 Updated by Go MAEDA 3 months ago

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

#8 Updated by Go MAEDA 3 months ago

  • Target version set to Candidate for next major release

Also available in: Atom PDF