Skip to content
This repository was archived by the owner on Aug 19, 2021. It is now read-only.

Commit b784756

Browse files
committed
Added "PageTemplates" to the list of Trac pages to discard.
Character '-' is also used for bullet lists.
1 parent fb3910c commit b784756

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

migrate_from_trac.rake

+5-4
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ namespace :redmine do
200200
TracReports TracRevisionLog TracRoadmap TracRss TracSearch TracStandalone TracSupport TracSyntaxColoring TracTickets \
201201
TracTicketsCustomFields TracTimeline TracUnicode TracUpgrade TracWiki WikiDeletePage WikiFormatting \
202202
WikiHtml WikiMacros WikiNewPage WikiPageNames WikiProcessors WikiRestructuredText WikiRestructuredTextLinks \
203-
CamelCase TitleIndex TracNavigation TracFineGrainedPermissions TracWorkflow TimingAndEstimationPluginUserManual)
203+
CamelCase TitleIndex TracNavigation TracFineGrainedPermissions TracWorkflow TimingAndEstimationPluginUserManual \
204+
PageTemplates)
204205
class TracWikiPage < ActiveRecord::Base
205206
set_table_name :wiki
206207
set_primary_key :name
@@ -289,7 +290,7 @@ namespace :redmine do
289290
migrated_wiki_edits = 0
290291
migrated_wiki_attachments = 0
291292

292-
#Wiki system initializing...
293+
# Wiki system initializing...
293294
@target_project.wiki.destroy if @target_project.wiki
294295
@target_project.reload
295296
wiki = Wiki.new(:project => @target_project, :start_page => 'WikiStart')
@@ -302,7 +303,7 @@ namespace :redmine do
302303
TracComponent.find(:all).each do |component|
303304
c = IssueCategory.new :project => @target_project,
304305
:name => encode(component.name[0, limit_for(IssueCategory, 'name')])
305-
#Owner
306+
# Owner
306307
unless component.owner.blank?
307308
c.assigned_to = find_or_create_user(component.owner, true)
308309
end
@@ -1114,7 +1115,7 @@ namespace :redmine do
11141115
text = text.gsub(/\|\|/, '|')
11151116
# Lists:
11161117
# bullet
1117-
text = text.gsub(/^(\ +)\* /) {|s| '*' * $1.length + " "}
1118+
text = text.gsub(/^(\ +)[\*-] /) {|s| '*' * $1.length + " "}
11181119
# numbered
11191120
text = text.gsub(/^(\ +)\d+\. /) {|s| '#' * $1.length + " "}
11201121
# Images (work for only attached in current page [[Image(picture.gif)]])

0 commit comments

Comments
 (0)