From 05a4c4616f179f72837623fed741e1f500cb1194 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sun, 29 May 2011 11:59:57 -0700 Subject: [PATCH 1/2] [#262] Add a rake task to convert line endings to UNIX --- lib/tasks/code.rake | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/tasks/code.rake diff --git a/lib/tasks/code.rake b/lib/tasks/code.rake new file mode 100644 index 00000000..6094daf5 --- /dev/null +++ b/lib/tasks/code.rake @@ -0,0 +1,14 @@ +namespace :code do + desc "Fix line endings of all source files" + task :fix_line_endings do + unless `which fromdos`.present? + raise "fromdos command not found" + end + + Dir['**/**{.rb,.html.erb,.rhtml,.rjs,.rsb,.plain.erb,.rxml,.yml,.rake,.eml}'].each do |file_name| + next if file_name.include?("vendor") + system("fromdos #{file_name}") + end + + end +end From a85b6780d2c1d1fe1cc11bf4851e504cbd91c516 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sun, 29 May 2011 12:00:18 -0700 Subject: [PATCH 2/2] [#262] Convert line endings to UNIX --- app/views/common/error.html.erb | 12 +- app/views/help/wiki_syntax_detailed.html.erb | 468 ++-- app/views/projects/settings/_activities.rhtml | 84 +- config/locales/eu.yml | 1894 ++++++++-------- config/locales/lv.yml | 1876 ++++++++-------- config/locales/mk.yml | 1886 ++++++++-------- config/locales/mn.yml | 1888 ++++++++-------- config/locales/sr-YU.yml | 1886 ++++++++-------- db/migrate/001_setup.rb | 482 ++-- lib/SVG/Graph/Bar.rb | 296 +-- lib/SVG/Graph/BarBase.rb | 278 +-- lib/SVG/Graph/BarHorizontal.rb | 298 +-- lib/SVG/Graph/Graph.rb | 1956 ++++++++--------- lib/SVG/Graph/Pie.rb | 790 +++---- lib/SVG/Graph/Plot.rb | 1000 ++++----- lib/SVG/Graph/TimeSeries.rb | 482 ++-- .../scm/adapters/subversion_adapter.rb | 564 ++--- lib/tasks/email.rake | 372 ++-- lib/tasks/extract_fixtures.rake | 46 +- lib/tasks/fetch_changesets.rake | 48 +- lib/tasks/load_default_data.rake | 70 +- lib/tasks/migrate_from_mantis.rake | 1024 ++++----- lib/tasks/migrate_plugins.rake | 30 +- lib/tasks/testing.rake | 178 +- test/exemplars/version_exemplar.rb | 22 +- ...pdate_with_multiple_quoted_reply_above.eml | 96 +- .../issue_update_with_quoted_reply_above.eml | 96 +- .../mail_handler/ticket_by_empty_user.eml | 34 +- .../mail_handler/ticket_by_unknown_user.eml | 36 +- .../mail_handler/ticket_on_given_project.eml | 120 +- test/fixtures/mail_handler/ticket_reply.eml | 148 +- .../mail_handler/ticket_with_attachment.eml | 496 ++--- .../ticket_with_invalid_attributes.eml | 94 +- .../ticket_with_localized_attributes.eml | 86 +- .../mail_handler/ticket_with_long_subject.eml | 114 +- 35 files changed, 9625 insertions(+), 9625 deletions(-) diff --git a/app/views/common/error.html.erb b/app/views/common/error.html.erb index 35d90864..0367b47b 100644 --- a/app/views/common/error.html.erb +++ b/app/views/common/error.html.erb @@ -1,6 +1,6 @@ -

<%=h @status %>

- -

<%=h @message %>

-

Back

- -<% html_title @status %> +

<%=h @status %>

+ +

<%=h @message %>

+

Back

+ +<% html_title @status %> diff --git a/app/views/help/wiki_syntax_detailed.html.erb b/app/views/help/wiki_syntax_detailed.html.erb index 0127efd7..b25911d0 100644 --- a/app/views/help/wiki_syntax_detailed.html.erb +++ b/app/views/help/wiki_syntax_detailed.html.erb @@ -1,112 +1,112 @@ -<% content_for :styles do %> - body { font:80% Verdana,Tahoma,Arial,sans-serif; } - h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; } - pre, code { font-size:120%; } - pre code { font-size:100%; } - pre { - margin: 1em 1em 1em 1.6em; - padding: 2px; - background-color: #fafafa; - border: 1px solid #dadada; - width:95%; - overflow-x: auto; - } - a.new { color: #b73535; } - - .CodeRay .c { color:#666; } - - .CodeRay .cl { color:#B06; font-weight:bold } - .CodeRay .dl { color:black } - .CodeRay .fu { color:#06B; font-weight:bold } - - .CodeRay .il { background: #eee } - .CodeRay .il .idl { font-weight: bold; color: #888 } - - .CodeRay .iv { color:#33B } - .CodeRay .r { color:#080; font-weight:bold } - - .CodeRay .s { background-color:#fff0f0 } - .CodeRay .s .dl { color:#710 } -<% end %> - -<% html_title "Wiki Formatting" %> -

Wiki Formatting

- -

Links

- -

ChiliProject links

- -

ChiliProject allows hyperlinking between issues, changesets and wiki pages from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- +<% content_for :styles do %> + body { font:80% Verdana,Tahoma,Arial,sans-serif; } + h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; } + pre, code { font-size:120%; } + pre code { font-size:100%; } + pre { + margin: 1em 1em 1em 1.6em; + padding: 2px; + background-color: #fafafa; + border: 1px solid #dadada; + width:95%; + overflow-x: auto; + } + a.new { color: #b73535; } + + .CodeRay .c { color:#666; } + + .CodeRay .cl { color:#B06; font-weight:bold } + .CodeRay .dl { color:black } + .CodeRay .fu { color:#06B; font-weight:bold } + + .CodeRay .il { background: #eee } + .CodeRay .il .idl { font-weight: bold; color: #888 } + + .CodeRay .iv { color:#33B } + .CodeRay .r { color:#080; font-weight:bold } + + .CodeRay .s { background-color:#fff0f0 } + .CodeRay .s .dl { color:#710 } +<% end %> + +<% html_title "Wiki Formatting" %> +

Wiki Formatting

+ +

Links

+ +

ChiliProject links

+ +

ChiliProject allows hyperlinking between issues, changesets and wiki pages from anywhere wiki formatting is used.

+ + +

Wiki links:

+ + + +

You can also link to pages of an other project wiki:

+ + + +

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

+

Links to other resources:

- -