From 7342566c6ee3834c93a86aad01b64d06d02d9bba Mon Sep 17 00:00:00 2001 From: Jean-Philippe Fleury Date: Fri, 2 Dec 2011 01:13:54 +0100 Subject: [PATCH 1/2] Use positional arguments everywhere where we put more than one string into a translatable sentence to ease the work on more exotic translations. --- NEWS.mdtext | 3 ++- src/IDF/Commit.php | 4 ++-- src/IDF/Issue.php | 8 ++++---- src/IDF/IssueComment.php | 4 ++-- src/IDF/Plugin/SyncMonotone.php | 8 ++++---- src/IDF/Review/Comment.php | 6 +++--- src/IDF/Review/Patch.php | 6 +++--- src/IDF/Upload.php | 6 +++--- src/IDF/Views/Issue.php | 14 +++++++------- src/IDF/Views/Review.php | 6 +++--- src/IDF/Views/Source.php | 2 +- src/IDF/Views/Wiki.php | 4 ++-- src/IDF/WikiPage.php | 4 ++-- src/IDF/WikiRevision.php | 8 ++++---- 14 files changed, 42 insertions(+), 41 deletions(-) diff --git a/NEWS.mdtext b/NEWS.mdtext index cff8376..72ea380 100644 --- a/NEWS.mdtext +++ b/NEWS.mdtext @@ -2,7 +2,8 @@ ## Language and Translations -- Multiple fixes to English source strings (thanks to JP Fleury!) +- Multiple fixes to English source strings (fixes issues 763, 766, and 772, + thanks to JP Fleury!) # InDefero 1.2 - Sun Nov 6 23:04:00 UTC 2011 diff --git a/src/IDF/Commit.php b/src/IDF/Commit.php index aea863c..b8981b6 100644 --- a/src/IDF/Commit.php +++ b/src/IDF/Commit.php @@ -235,7 +235,7 @@ class IDF_Commit extends Pluf_Model -
'.sprintf(__('Commit %s, by %s'), ''.$this->scm_id.'', $user).'
'; +
'.sprintf(__('Commit %1$s, by %2$s'), ''.$this->scm_id.'', $user).'
'; return Pluf_Template::markSafe($out); } @@ -326,7 +326,7 @@ class IDF_Commit extends Pluf_Model foreach ($addresses as $address) { $email = new Pluf_Mail(Pluf::f('from_email'), $address, - sprintf(__('New Commit %s - %s (%s)'), + sprintf(__('New Commit %1$s - %2$s (%3$s)'), $this->scm_id, $this->summary, $this->get_project()->shortname)); $email->addTextMessage($text_email); diff --git a/src/IDF/Issue.php b/src/IDF/Issue.php index 5817775..23a0b66 100644 --- a/src/IDF/Issue.php +++ b/src/IDF/Issue.php @@ -211,7 +211,7 @@ class IDF_Issue extends Pluf_Model $ic = (in_array($this->status, $request->project->getTagIdsByStatus('closed'))) ? 'issue-c' : 'issue-o'; $out .= sprintf(__('Issue %3$d, %4$s'), $url, $ic, $this->id, Pluf_esc($this->summary)).''; $out .= "\n".' -
'.sprintf(__('Creation of issue %d, by %s'), $url, $ic, $this->id, $user).'
'; +
'.sprintf(__('Creation of issue %3$d, by %4$s'), $url, $ic, $this->id, $user).'
'; return Pluf_Template::markSafe($out); } @@ -221,7 +221,7 @@ class IDF_Issue extends Pluf_Model .Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view', array($request->project->shortname, $this->id)); - $title = sprintf(__('%s: Issue %d created - %s'), + $title = sprintf(__('%1$s: Issue %2$d created - %3$s'), $request->project->name, $this->id, $this->summary); $cts = $this->get_comments_list(array('order' => 'id ASC', @@ -287,7 +287,7 @@ class IDF_Issue extends Pluf_Model foreach ($to_email as $email_lang) { Pluf_Translation::loadSetLocale($email_lang[1]); $email = new Pluf_Mail(Pluf::f('from_email'), $email_lang[0], - sprintf(__('Issue %s - %s (%s)'), + sprintf(__('Issue %1$s - %2$s (%3$s)'), $this->id, $this->summary, $prj->shortname)); $tmpl = new Pluf_Template('idf/issues/issue-created-email.txt'); $email->addTextMessage($tmpl->render($context)); @@ -333,7 +333,7 @@ class IDF_Issue extends Pluf_Model } Pluf_Translation::loadSetLocale($email_lang[1]); $email = new Pluf_Mail(Pluf::f('from_email'), $email_lang[0], - sprintf(__('Updated Issue %s - %s (%s)'), + sprintf(__('Updated Issue %1$s - %2$s (%3$s)'), $this->id, $this->summary, $prj->shortname)); $tmpl = new Pluf_Template('idf/issues/issue-updated-email.txt'); $email->addTextMessage($tmpl->render($context)); diff --git a/src/IDF/IssueComment.php b/src/IDF/IssueComment.php index 206f9f0..bcd648c 100644 --- a/src/IDF/IssueComment.php +++ b/src/IDF/IssueComment.php @@ -177,7 +177,7 @@ class IDF_IssueComment extends Pluf_Model } $out .= ''; $out .= "\n".' -
'.sprintf(__('Comment on issue %d, by %s'), $url, $ic, $issue->id, $user).'
'; +
'.sprintf(__('Comment on issue %3$d, by %4$s'), $url, $ic, $issue->id, $user).'
'; return Pluf_Template::markSafe($out); } @@ -188,7 +188,7 @@ class IDF_IssueComment extends Pluf_Model .Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view', array($request->project->shortname, $issue->id)); - $title = sprintf(__('%s: Comment on issue %d - %s'), + $title = sprintf(__('%1$s: Comment on issue %2$d - %3$s'), Pluf_esc($request->project->name), $issue->id, Pluf_esc($issue->summary)); $url .= '#ic'.$this->id; diff --git a/src/IDF/Plugin/SyncMonotone.php b/src/IDF/Plugin/SyncMonotone.php index d6cc9ba..d8e273b 100644 --- a/src/IDF/Plugin/SyncMonotone.php +++ b/src/IDF/Plugin/SyncMonotone.php @@ -306,7 +306,7 @@ class IDF_Plugin_SyncMonotone } catch (Exception $e) { $this->_diagnoseProblem(sprintf( - __('Could not parse usher configuration in "%s": %s'), + __('Could not parse usher configuration in "%1$s": %2$s'), $usher_config, $e->getMessage() )); } @@ -522,7 +522,7 @@ class IDF_Plugin_SyncMonotone } catch (Exception $e) { $this->_diagnoseProblem(sprintf( - __('Could not parse usher configuration in "%s": %s'), + __('Could not parse usher configuration in "%1$s": %2$s'), $usher_config, $e->getMessage() )); } @@ -596,7 +596,7 @@ class IDF_Plugin_SyncMonotone } catch (Exception $e) { $this->_diagnoseProblem(sprintf( - __('Could not parse read-permissions for project "%s": %s'), + __('Could not parse read-permissions for project "%1$s": %2$s'), $shortname, $e->getMessage() )); } @@ -715,7 +715,7 @@ class IDF_Plugin_SyncMonotone } catch (Exception $e) { $this->_diagnoseProblem(sprintf( - __('Could not parse read-permissions for project "%s": %s'), + __('Could not parse read-permissions for project "%1$s": %2$s'), $shortname, $e->getMessage() )); } diff --git a/src/IDF/Review/Comment.php b/src/IDF/Review/Comment.php index e247808..37157bd 100644 --- a/src/IDF/Review/Comment.php +++ b/src/IDF/Review/Comment.php @@ -138,7 +138,7 @@ class IDF_Review_Comment extends Pluf_Model $ic = (in_array($review->status, $request->project->getTagIdsByStatus('closed'))) ? 'issue-c' : 'issue-o'; $out .= sprintf(__('Review %3$d, %4$s'), $url, $ic, $review->id, Pluf_esc($review->summary)).''; $out .= "\n".' -
'.sprintf(__('Update of review %d, by %s'), $url, $ic, $review->id, $user).'
'; +
'.sprintf(__('Update of review %3$d, by %4$s'), $url, $ic, $review->id, $user).'
'; return Pluf_Template::markSafe($out); } @@ -148,7 +148,7 @@ class IDF_Review_Comment extends Pluf_Model $url = Pluf_HTTP_URL_urlForView('IDF_Views_Review::view', array($request->project->shortname, $review->id)); - $title = sprintf(__('%s: Updated review %d - %s'), + $title = sprintf(__('%1$s: Updated review %2$d - %3$s'), Pluf_esc($request->project->name), $review->id, Pluf_esc($review->summary)); $url .= '#ic'.$this->id; @@ -213,7 +213,7 @@ class IDF_Review_Comment extends Pluf_Model foreach ($to_email as $email_lang) { Pluf_Translation::loadSetLocale($email_lang[1]); $email = new Pluf_Mail(Pluf::f('from_email'), $email_lang[0], - sprintf(__('Updated Code Review %s - %s (%s)'), + sprintf(__('Updated Code Review %1$s - %2$s (%3$s)'), $review->id, $review->summary, $prj->shortname)); $email->addTextMessage($tmpl->render($context)); diff --git a/src/IDF/Review/Patch.php b/src/IDF/Review/Patch.php index 4acb772..07ee8e3 100644 --- a/src/IDF/Review/Patch.php +++ b/src/IDF/Review/Patch.php @@ -150,7 +150,7 @@ class IDF_Review_Patch extends Pluf_Model $ic = (in_array($review->status, $request->project->getTagIdsByStatus('closed'))) ? 'issue-c' : 'issue-o'; $out .= sprintf(__('Review %3$d, %4$s'), $url, $ic, $review->id, Pluf_esc($review->summary)).''; $out .= "\n".' -
'.sprintf(__('Creation of review %d, by %s'), $url, $ic, $review->id, $user).'
'; +
'.sprintf(__('Creation of review %3$d, by %4$s'), $url, $ic, $review->id, $user).'
'; return Pluf_Template::markSafe($out); } @@ -160,7 +160,7 @@ class IDF_Review_Patch extends Pluf_Model $url = Pluf_HTTP_URL_urlForView('IDF_Views_Review::view', array($request->project->shortname, $review->id)); - $title = sprintf(__('%s: Creation of Review %d - %s'), + $title = sprintf(__('%1$s: Creation of Review %2$d - %3$s'), Pluf_esc($request->project->name), $review->id, Pluf_esc($review->summary)); $date = Pluf_Date::gmDateToGmString($this->creation_dtime); @@ -201,7 +201,7 @@ class IDF_Review_Patch extends Pluf_Model foreach ($addresses as $address) { $email = new Pluf_Mail(Pluf::f('from_email'), $address, - sprintf(__('New Code Review %s - %s (%s)'), + sprintf(__('New Code Review %1$s - %2$s (%3$s)'), $this->get_review()->id, $this->get_review()->summary, $this->get_review()->get_project()->shortname)); diff --git a/src/IDF/Upload.php b/src/IDF/Upload.php index 6a28c1b..b683156 100644 --- a/src/IDF/Upload.php +++ b/src/IDF/Upload.php @@ -201,7 +201,7 @@ class IDF_Upload extends Pluf_Model $out .= sprintf(__('Download %2$d, %3$s'), $url, $this->id, Pluf_esc($this->summary)).''; $out .= ''; $out .= "\n".' -
'.sprintf(__('Addition of download %d, by %s'), $url, $this->id, $user).'
'; +
'.sprintf(__('Addition of download %2$d, by %3$s'), $url, $this->id, $user).'
'; return Pluf_Template::markSafe($out); } @@ -211,7 +211,7 @@ class IDF_Upload extends Pluf_Model .Pluf_HTTP_URL_urlForView('IDF_Views_Download::view', array($request->project->shortname, $this->id)); - $title = sprintf(__('%s: Download %d added - %s'), + $title = sprintf(__('%1$s: Download %2$d added - %3$s'), $request->project->name, $this->id, $this->summary); $date = Pluf_Date::gmDateToGmString($this->creation_dtime); @@ -253,7 +253,7 @@ class IDF_Upload extends Pluf_Model foreach ($addresses as $address) { $email = new Pluf_Mail(Pluf::f('from_email'), $address, - sprintf(__('New download - %s (%s)'), + sprintf(__('New download - %1$s (%2$s)'), $this->summary, $this->get_project()->shortname)); $email->addTextMessage($text_email); diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 10ecfff..1222135 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -338,19 +338,19 @@ class IDF_Views_Issue if (count($ctags) == 0) $ctags[] = 0; switch ($match[3]) { case 'submit': - $titleFormat = __('%s %s Submitted %s Issues'); + $titleFormat = __('%1$s %2$s Submitted %3$s Issues'); $f_sql = new Pluf_SQL('project=%s AND submitter=%s AND status IN ('.implode(', ', $otags).')', array($prj->id, $user->id)); break; case 'submitclosed': - $titleFormat = __('%s %s Closed Submitted %s Issues'); + $titleFormat = __('%1$s %2$s Closed Submitted %3$s Issues'); $f_sql = new Pluf_SQL('project=%s AND submitter=%s AND status IN ('.implode(', ', $ctags).')', array($prj->id, $user->id)); break; case 'ownerclosed': - $titleFormat = __('%s %s Closed Working %s Issues'); + $titleFormat = __('%1$s %2$s Closed Working %3$s Issues'); $f_sql = new Pluf_SQL('project=%s AND owner=%s AND status IN ('.implode(', ', $ctags).')', array($prj->id, $user->id)); break; default: - $titleFormat = __('%s %s Working %s Issues'); + $titleFormat = __('%1$s %2$s Working %3$s Issues'); $f_sql = new Pluf_SQL('project=%s AND owner=%s AND status IN ('.implode(', ', $otags).')', array($prj->id, $user->id)); break; } @@ -427,7 +427,7 @@ class IDF_Views_Issue array($prj->shortname, $issue->id)); $issue->notify($request->conf); if ($api) return $issue; - $request->user->setMessage(sprintf(__('Issue %d has been created.'), $url, $issue->id)); + $request->user->setMessage(sprintf(__('Issue %2$d has been created.'), $url, $issue->id)); return new Pluf_HTTP_Response_Redirect($url); } } else { @@ -598,7 +598,7 @@ class IDF_Views_Issue $url = Pluf_HTTP_URL_urlForView('IDF_Views_Issue::view', array($prj->shortname, $issue->id)); - $title = Pluf_Template::markSafe(sprintf(__('Issue %d: %s'), $url, $issue->id, $issue->summary)); + $title = Pluf_Template::markSafe(sprintf(__('Issue %2$d: %3$s'), $url, $issue->id, $issue->summary)); $form = false; // The form is available only if logged in. $starred = false; $closed = in_array($issue->status, $prj->getTagIdsByStatus('closed')); @@ -622,7 +622,7 @@ class IDF_Views_Issue $issue->notify($request->conf, false); $comments = $issue->get_comments_list(array('order' => 'id DESC')); $url .= '#ic' . $comments[0]->id; - $request->user->setMessage(sprintf(__('Issue %d has been updated.'), $url, $issue->id)); + $request->user->setMessage(sprintf(__('Issue %2$d has been updated.'), $url, $issue->id)); return new Pluf_HTTP_Response_Redirect($url); } } else { diff --git a/src/IDF/Views/Review.php b/src/IDF/Views/Review.php index 64f0f84..f34a06f 100644 --- a/src/IDF/Views/Review.php +++ b/src/IDF/Views/Review.php @@ -91,7 +91,7 @@ class IDF_Views_Review $review = $form->save(); $urlr = Pluf_HTTP_URL_urlForView('IDF_Views_Review::view', array($prj->shortname, $review->id)); - $request->user->setMessage(sprintf(__('The code review %d has been created.'), $urlr, $review->id)); + $request->user->setMessage(sprintf(__('The code review %2$d has been created.'), $urlr, $review->id)); $url = Pluf_HTTP_URL_urlForView('IDF_Views_Review::index', array($prj->shortname)); return new Pluf_HTTP_Response_Redirect($url); @@ -137,7 +137,7 @@ class IDF_Views_Review $prj->inOr404($review); $url = Pluf_HTTP_URL_urlForView('IDF_Views_Review::view', array($prj->shortname, $review->id)); - $title = Pluf_Template::markSafe(sprintf(__('Review %d: %s'), $url, $review->id, $review->summary)); + $title = Pluf_Template::markSafe(sprintf(__('Review %2$d: %3$s'), $url, $review->id, $review->summary)); $patches = $review->get_patches_list(); $patch = $patches[0]; @@ -157,7 +157,7 @@ class IDF_Views_Review $review = $patch->get_review(); $urlr = Pluf_HTTP_URL_urlForView('IDF_Views_Review::view', array($prj->shortname, $review->id)); - $request->user->setMessage(sprintf(__('Your code review %d has been published.'), $urlr, $review->id)); + $request->user->setMessage(sprintf(__('Your code review %2$d has been published.'), $urlr, $review->id)); $url = Pluf_HTTP_URL_urlForView('IDF_Views_Review::index', array($prj->shortname)); $review_comment->notify($request->conf); diff --git a/src/IDF/Views/Source.php b/src/IDF/Views/Source.php index 1496e54..81760a0 100644 --- a/src/IDF/Views/Source.php +++ b/src/IDF/Views/Source.php @@ -302,7 +302,7 @@ class IDF_Views_Source throw new Exception('could not retrieve commit object for '. $commit); } $title = sprintf(__('%s Commit Details'), (string) $request->project); - $page_title = sprintf(__('%s Commit Details - %s'), (string) $request->project, $commit); + $page_title = sprintf(__('%1$s Commit Details - %2$s'), (string) $request->project, $commit); $rcommit = IDF_Commit::getOrAdd($cobject, $request->project); $diff = new IDF_Diff($cobject->diff, $scm->getDiffPathStripLevel()); $cobject->diff = null; diff --git a/src/IDF/Views/Wiki.php b/src/IDF/Views/Wiki.php index 6880f4c..972d2c2 100644 --- a/src/IDF/Views/Wiki.php +++ b/src/IDF/Views/Wiki.php @@ -181,7 +181,7 @@ class IDF_Views_Wiki $page = $form->save(); $urlpage = Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view', array($prj->shortname, $page->title)); - $request->user->setMessage(sprintf(__('The page %s has been created.'), $urlpage, Pluf_esc($page->title))); + $request->user->setMessage(sprintf(__('The page %2$s has been created.'), $urlpage, Pluf_esc($page->title))); $url = Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::index', array($prj->shortname)); return new Pluf_HTTP_Response_Redirect($url); @@ -319,7 +319,7 @@ class IDF_Views_Wiki $page = $form->save(); $urlpage = Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view', array($prj->shortname, $page->title)); - $request->user->setMessage(sprintf(__('The page %s has been updated.'), $urlpage, Pluf_esc($page->title))); + $request->user->setMessage(sprintf(__('The page %2$s has been updated.'), $urlpage, Pluf_esc($page->title))); $url = Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::index', array($prj->shortname)); return new Pluf_HTTP_Response_Redirect($url); diff --git a/src/IDF/WikiPage.php b/src/IDF/WikiPage.php index 021115b..de1a318 100644 --- a/src/IDF/WikiPage.php +++ b/src/IDF/WikiPage.php @@ -195,7 +195,7 @@ class IDF_WikiPage extends Pluf_Model $user = $stag->start($this->get_submitter(), $request, '', false); $out .= sprintf(__('%2$s, %3$s'), $url, Pluf_esc($this->title), Pluf_esc($this->summary)).''; $out .= "\n".' -
'.sprintf(__('Creation of page %s, by %s'), $url, Pluf_esc($this->title), $user).'
'; +
'.sprintf(__('Creation of page %2$s, by %3$s'), $url, Pluf_esc($this->title), $user).'
'; return Pluf_Template::markSafe($out); } @@ -205,7 +205,7 @@ class IDF_WikiPage extends Pluf_Model .Pluf_HTTP_URL_urlForView('IDF_Views_Wiki::view', array($request->project->shortname, $this->title)); - $title = sprintf(__('%s: Documentation page %s added - %s'), + $title = sprintf(__('%1$s: Documentation page %2$s added - %3$s'), $request->project->name, $this->title, $this->summary); $date = Pluf_Date::gmDateToGmString($this->creation_dtime); diff --git a/src/IDF/WikiRevision.php b/src/IDF/WikiRevision.php index a74909c..d9140c5 100644 --- a/src/IDF/WikiRevision.php +++ b/src/IDF/WikiRevision.php @@ -186,7 +186,7 @@ class IDF_WikiRevision extends Pluf_Model } $out .= ''; $out .= "\n".' -
'.sprintf(__('Change of %s, by %s'), $url, Pluf_esc($page->title), $user).'
'; +
'.sprintf(__('Change of %2$s, by %3$s'), $url, Pluf_esc($page->title), $user).'
'; return Pluf_Template::markSafe($out); } @@ -205,7 +205,7 @@ class IDF_WikiRevision extends Pluf_Model array($request->project->shortname, $page->title)); } - $title = sprintf(__('%s: Documentation page %s updated - %s'), + $title = sprintf(__('%1$s: Documentation page %2$s updated - %3$s'), $request->project->name, $page->title, $page->summary); $date = Pluf_Date::gmDateToGmString($this->creation_dtime); @@ -259,13 +259,13 @@ class IDF_WikiRevision extends Pluf_Model ); if ($create) { $template = 'idf/wiki/wiki-created-email.txt'; - $title = sprintf(__('New Documentation Page %s - %s (%s)'), + $title = sprintf(__('New Documentation Page %1$s - %2$s (%3$s)'), $this->get_wikipage()->title, $this->get_wikipage()->summary, $this->get_wikipage()->get_project()->shortname); } else { $template = 'idf/wiki/wiki-updated-email.txt'; - $title = sprintf(__('Documentation Page Changed %s - %s (%s)'), + $title = sprintf(__('Documentation Page Changed %1$s - %2$s (%3$s)'), $this->get_wikipage()->title, $this->get_wikipage()->summary, $this->get_wikipage()->get_project()->shortname); From 6a44af34e1805b353b0dcdee4f66f60cbcf9ac06 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Fleury Date: Fri, 2 Dec 2011 01:20:14 +0100 Subject: [PATCH 2/2] Fix issue 773. --- NEWS.mdtext | 5 +++++ src/IDF/Diff.php | 8 ++++---- www/media/idf/css/style.css | 5 +++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/NEWS.mdtext b/NEWS.mdtext index 72ea380..58cabd5 100644 --- a/NEWS.mdtext +++ b/NEWS.mdtext @@ -1,5 +1,10 @@ # InDefero 1.2.1 - XXX XXX XX XX:XX:XX UTC 201X +## Bugfixes + +- The diff view now renders properly in Firefox when a minimum font size + is configured or the user zooms the web page (fixes issue 773) + ## Language and Translations - Multiple fixes to English source strings (fixes issues 763, 766, and 772, diff --git a/src/IDF/Diff.php b/src/IDF/Diff.php index 6c76ce2..ac86934 100644 --- a/src/IDF/Diff.php +++ b/src/IDF/Diff.php @@ -184,12 +184,12 @@ class IDF_Diff $added = $added[0] + $added[1]; $leftwidth = 0; if ($added > 0) - $leftwidth = ((ceil(log10($added)) + 1) * 8) + 12; + $leftwidth = ((ceil(log10($added)) + 1) * 8) + 17; $removed = $removed[0] + $removed[1]; $rightwidth = 0; if ($removed > 0) - $rightwidth = ((ceil(log10($removed)) + 1) * 8) + 12; + $rightwidth = ((ceil(log10($removed)) + 1) * 8) + 17; // we need to correct the width of a single column a little // to take less space and to hide the empty one @@ -411,11 +411,11 @@ class IDF_Diff $leftwidth = 1; if ($max_lineno_left > 0) - $leftwidth = ((ceil(log10($max_lineno_left)) + 1) * 8) + 12; + $leftwidth = ((ceil(log10($max_lineno_left)) + 1) * 8) + 17; $rightwidth = 1; if ($max_lineno_right > 0) - $rightwidth = ((ceil(log10($max_lineno_right)) + 1) * 8) + 12; + $rightwidth = ((ceil(log10($max_lineno_right)) + 1) * 8) + 17; $inner_linecounts_left = '' ."\n". diff --git a/www/media/idf/css/style.css b/www/media/idf/css/style.css index 481c3d9..8e12ddc 100644 --- a/www/media/idf/css/style.css +++ b/www/media/idf/css/style.css @@ -652,7 +652,7 @@ table.diff-contents { table.diff-linecounts tr, table.diff-contents tr { - height: 18px; + height: 22px; } table.diff-linecounts tr { @@ -664,8 +664,9 @@ table.diff-linecounts tr:first-child { } table.diff-linecounts td { + line-height: 12px; font-size: 90%; - padding: 1px 10px; + padding: 2px 10px; text-align: right; border-left: 1px solid #d3d7cf; }