'; + // when producing codepot-line-numbered code, make sure to produce proper // line terminators. // // the'; ?> - -block requires \n after every line. // while the block to contain revision numbers and authors - // doesn't require \n. It is because the css file sets the line-number span + // doesn't require \n. It is because the css file sets the codepot-line-number span // to display: block. // // If you have new lines between and
, there will @@ -311,7 +313,7 @@ $this->load->view ( $content = &$file['content']; $len = count($content); - print ''; + print ''; $rev = ''; for ($i = 0; $i < $len; $i++) { @@ -336,7 +338,7 @@ $this->load->view ( } print ''; - print ''; + print ''; $rev = ''; $author = ''; for ($i = 0; $i < $len; $i++) @@ -361,7 +363,7 @@ $this->load->view ( } print ''; - printf ('
', $prettyprint_linenums, $prettyprint_lang); + printf ('
', $prettyprint_linenums, $prettyprint_lang); $charset = ''; if (array_key_exists('properties', $file) && count($file['properties']) > 0) @@ -400,10 +402,10 @@ $this->load->view ( } print '
'; + print '
';
+ print '';
- print '';
+ print '';
$actual_line_no = 1;
foreach ($file['content'] as $x)
{
@@ -516,13 +520,13 @@ $this->load->view (
}
else
{
- if ($actual_line_no > 1) print " ";
+ if ($actual_line_no > 1) print " ";
$actual_line_no = $x['rev2lineno'];
}
}
print '';
- print '';
+ print '';
$actual_line_no = 1;
foreach ($file['content'] as $x)
{
@@ -560,14 +564,14 @@ $this->load->view (
//print " ";
//print $x['rev2lineno'];
//print " \n";
- if ($actual_line_no > 1) print " \n"; // \n is required here unlike in the line number block
+ if ($actual_line_no > 1) print " \n"; // \n is required here unlike in the line number block
$actual_line_no = $x['rev2lineno'];
}
}
print '
';
- print '';
+ print '';
print '
';
print '
'; + print ' | '; } print ' | ' . $this->lang->line('Name') . ' | '; print '' . $this->lang->line('Revision') . ' | '; @@ -1091,9 +1094,9 @@ $this->load->view ( print ''; print htmlspecialchars($f['last_author']); print ' | '; - print '';
+ print ' | ';
print ''; print ' | '; print ' | '; @@ -1127,9 +1130,9 @@ $this->load->view ( print ' | '; print htmlspecialchars($f['last_author']); print ' | '; - print '';
+ print ' | ';
print '';
print anchor ("code/blame/{$project->id}/{$hexpath}{$revreq}", $blame_anchor_text);
@@ -1151,11 +1154,8 @@ $this->load->view (
0)
{
- print ' ';
- // the pre division is gone when rendered as a wiki text.
- // so is the pre-wrapped class. so let me put the class
- // regardless of the text type.
- print '
-'; + print '
+ lang->line('Message'); ?>:
@@ -1206,7 +1206,7 @@ if (strlen($readme_text) > 0)
-
+
-
+
load->view (
-
-
|
---|