プロジェクト

全般

プロフィール

Vote #65164

完了

Incorrect handling of anchors in Wiki to HTML export

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

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

0%

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

説明

Here is my conf: Postgresql 8.3.7-1; Ruby 1.8.7; Rails 2.3.2; Redmine 0.8.3

The problem is when you export Wiki page to HTML all local anchor link are converted to html links. For example (space between [ and ] puts for notextile):

Wiki

[ [Wiki_page_name#some_anchor|link_text] ]

HTML

link_text

This conversion makes link unreachable.

After changing @:wiki_links => :local@ on @:wiki_links => :anchor@ in /app/views/wiki/export.rhtml anchors link starts convert to

link_text

After changing


      format_wiki_link = Proc.new {|project, title, anchor| "##{title}" }

to


      format_wiki_link = Proc.new {|project, title, anchor| "##{anchor}" }

in /app/helpers/application_helper.rb converstion works fine.


journals

I'm not sure to understand your problem.
If you're exporting a single wiki page, links to other pages needs to point to another HTML file. Of course, if this page was not exported, the link is unreachable.
Maybe you could attach a full example (raw text, HTML export and expected HTML export).
--------------------------------------------------------------------------------
My problem is converting local links which points to local anchors in the same HTML file.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Should be fixed in trunk with r7558.
--------------------------------------------------------------------------------

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


related_issues

duplicates,Closed,9064,Broken internal links in export wiki to html

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

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

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

いいね!0
いいね!0