プロジェクト

全般

プロフィール

Vote #66942

完了

diff code coloring using coderay

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Time tracking_13
対象バージョン:
開始日:
2010/03/28
期日:
進捗率:

0%

予定工数:
category_id:
13
version_id:
14
issue_org_id:
5199
author_id:
13780
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
17
ステータス-->[Closed]

説明

This seems not to work when I do pre and code style=diff. CodeRay however can highlight diffs.

As an example:


--- 2010-03-28.gp_invprint  2010-03-28 03:21:46.000000000 +0300
+++ gp_invprint 2010-03-28 03:23:08.000000000 +0300
@@ -535,7 +535,9 @@
    $p->text({align=> 'centre'}, 300, 120, "TAX INVOICE");
 
    $p->setfont("Arial", "8");
-   $p->text({align=> 'right'}, 580, 120, "TIN:nnnn VAT: mmm");
+   # old style tin. changed due to request.
+   #$p->text({align=> 'right'}, 580, 120, "TIN:nnnn VAT: mmm");
+   $p->text({align=> 'right'}, 580, 120, "e-TIN xxx VAT: rrr");
 
    $p->setfont($font{"name"}, 10);
    $p->text({align=> 'right'}, 100, 190, "Name: ");

journals

This is fixed in r3619.
Note that you have to use class="diff" instead of style="diff". Your example was fixed.
--------------------------------------------------------------------------------
The fix in r3619 breaks the test suite. Specifically test_syntax_highlight(ApplicationHelperTest)

See http://ci.finn.de/builds/1-8-7_redmine-trunk_mysql/3621
--------------------------------------------------------------------------------
Test fixed in r3622.
--------------------------------------------------------------------------------
It doesn't look like it's "supposed to look":http://coderay.rubychan.de/rays/show/6404. @:wrap => :span@ is not the right way to go, as it doesn't support the new line tokens that diff code needs.

I recommend using @.div@ instead of @.html@.

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

Admin Redmine さんが3年以上前に更新

  • カテゴリTime tracking_13 にセット
  • 対象バージョン1.0.0 (RC)_14 にセット

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

いいね!0
いいね!0