@@ -200,7 +200,8 @@ namespace :redmine do
200
200
TracReports TracRevisionLog TracRoadmap TracRss TracSearch TracStandalone TracSupport TracSyntaxColoring TracTickets \
201
201
TracTicketsCustomFields TracTimeline TracUnicode TracUpgrade TracWiki WikiDeletePage WikiFormatting \
202
202
WikiHtml WikiMacros WikiNewPage WikiPageNames WikiProcessors WikiRestructuredText WikiRestructuredTextLinks \
203
- CamelCase TitleIndex TracNavigation TracFineGrainedPermissions TracWorkflow TimingAndEstimationPluginUserManual )
203
+ CamelCase TitleIndex TracNavigation TracFineGrainedPermissions TracWorkflow TimingAndEstimationPluginUserManual \
204
+ PageTemplates )
204
205
class TracWikiPage < ActiveRecord ::Base
205
206
set_table_name :wiki
206
207
set_primary_key :name
@@ -289,7 +290,7 @@ namespace :redmine do
289
290
migrated_wiki_edits = 0
290
291
migrated_wiki_attachments = 0
291
292
292
- #Wiki system initializing...
293
+ # Wiki system initializing...
293
294
@target_project . wiki . destroy if @target_project . wiki
294
295
@target_project . reload
295
296
wiki = Wiki . new ( :project => @target_project , :start_page => 'WikiStart' )
@@ -302,7 +303,7 @@ namespace :redmine do
302
303
TracComponent . find ( :all ) . each do |component |
303
304
c = IssueCategory . new :project => @target_project ,
304
305
:name => encode ( component . name [ 0 , limit_for ( IssueCategory , 'name' ) ] )
305
- #Owner
306
+ # Owner
306
307
unless component . owner . blank?
307
308
c . assigned_to = find_or_create_user ( component . owner , true )
308
309
end
@@ -1114,7 +1115,7 @@ namespace :redmine do
1114
1115
text = text . gsub ( /\| \| / , '|' )
1115
1116
# Lists:
1116
1117
# bullet
1117
- text = text . gsub ( /^(\ +)\* / ) { |s | '*' * $1. length + " " }
1118
+ text = text . gsub ( /^(\ +)[ \* -] / ) { |s | '*' * $1. length + " " }
1118
1119
# numbered
1119
1120
text = text . gsub ( /^(\ +)\d +\. / ) { |s | '#' * $1. length + " " }
1120
1121
# Images (work for only attached in current page [[Image(picture.gif)]])
0 commit comments