threads / patch / 4856

patchgitweb.css: Courer fonts for commits and tree-diff

Subject: [PATCH] gitweb.css: Courer fonts for commits and tree-diff

## tl;dr

4 messages between Jul 12, 2006 and Jul 13, 2006. Diffs are folded; open one to read it.

replies: 3people: 3as markdown or json

Luben Tuikov· Jul 12, 2006, 03:43 UTC · lore

Courer fonts for the commit header, commit message, and tree-diff.

Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
---
 gitweb/gitweb.css |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
Show changes to gitweb/gitweb.css +8 −1
diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css
index 98410f5..b51282b 100644
--- a/gitweb/gitweb.css
+++ b/gitweb/gitweb.css
@@ -60,6 +60,7 @@ div.page_footer_text {
 
 div.page_body {
 	padding: 8px;
+	font-family: courier;
 }
 
 div.title, a.title {
@@ -79,6 +80,7 @@ div.title_text {
 	padding: 6px 0px;
 	border: solid #d9d8d1;
 	border-width: 0px 0px 1px;
+	font-family: courier;
 }
 
 div.log_body {
@@ -142,11 +144,15 @@ table {
 	padding: 8px 4px;
 }
 
-table.project_list, table.diff_tree {
+table.project_list {
 	border-spacing: 0;
 }
 
+table.diff_tree {
+	border-spacing: 0;
+	font-family: courier;
+}
+
 table.blame {
 	border-collapse: collapse;
 }
-- 
1.4.1.g9ca3
Junio C Hamano· Jul 12, 2006, 06:02 UTC · re: Luben Tuikov · lore

Re: [PATCH] gitweb.css: Courer fonts for commits and tree-diff

Luben Tuikov <ltuikov@yahoo.com> writes:
> Courer fonts for the commit header, commit message,
> and tree-diff.
>
> Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>

I really do not want to be in the position to judge a patch like this, whose evaluation is solely based on "prettiness" factor.

But if I really have to, I would say this makes things uglier and less readable. Maybe asking for monospace is less yucky but naming Courier explicitly?

BTW what tool do you use to generate and send your patches? I remember another patch from you recently did not apply and it turned out the problem was that the last hunk had line numbers wrong. This patch has exactly the same problem and I am wondering why.

I count 10 lines of original and 15 lines of new material in this hunk but the hunk header claims to have 11 lines of original text.

---
 gitweb/gitweb.css |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
Show changes to gitweb/gitweb.css +6 −1
diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css
index 98410f5..b51282b 100644
--- a/gitweb/gitweb.css
+++ b/gitweb/gitweb.css
 ... 
@@ -142,11 +144,15 @@ table {
 	padding: 8px 4px;
 }
 
-table.project_list, table.diff_tree {
+table.project_list {
 	border-spacing: 0;
 }
 
+table.diff_tree {
+	border-spacing: 0;
+	font-family: courier;
+}
+
 table.blame {
 	border-collapse: collapse;
 }
-- 
1.4.1.g9ca3
Luben Tuikov· Jul 12, 2006, 17:46 UTC · re: Junio C Hamano · lore

Re: [PATCH] gitweb.css: Courer fonts for commits and tree-diff

--- Junio C Hamano <junkio@cox.net> wrote:
Show 13 quoted lines
> Luben Tuikov <ltuikov@yahoo.com> writes:
> 
> > Courer fonts for the commit header, commit message,
> > and tree-diff.
> >
> > Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
> 
> I really do not want to be in the position to judge a patch like
> this, whose evaluation is solely based on "prettiness" factor.
> 
> But if I really have to, I would say this makes things uglier
> and less readable.  Maybe asking for monospace is less yucky but
> naming Courier explicitly?

Sometimes people would put ASCII art in their commit messages, things like a simple table, compiler output, log output, etc, and I wanted to _preserve_ the intent of such output. This is why I changed it to Courier. (sorry for the misspelling of Courier)

Show 5 quoted lines
> BTW what tool do you use to generate and send your patches?  I
> remember another patch from you recently did not apply and it
> turned out the problem was that the last hunk had line numbers
> wrong.  This patch has exactly the same problem and I am
> wondering why.

I use git. Those patches are against a one-off branch, which I created for the purpose of sending you the patches.

The original patches are against my "git-lt" branch, which has the File::MMagic changes in it -- it is my working branch. So I generated a patch off of "git-lt", applied it to "one-off-gitweb", which is identical to the git "master" branch, and sent the patches.

      Luben
Show 39 quoted lines
> 
> I count 10 lines of original and 15 lines of new material in
> this hunk but the hunk header claims to have 11 lines of
> original text.
> 
> ---
>  gitweb/gitweb.css |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
> diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css
> index 98410f5..b51282b 100644
> --- a/gitweb/gitweb.css
> +++ b/gitweb/gitweb.css
>  ... 
> @@ -142,11 +144,15 @@ table {
>  	padding: 8px 4px;
>  }
>  
> -table.project_list, table.diff_tree {
> +table.project_list {
>  	border-spacing: 0;
>  }
>  
> +table.diff_tree {
> +	border-spacing: 0;
> +	font-family: courier;
> +}
> +
>  table.blame {
>  	border-collapse: collapse;
>  }
> -- 
> 1.4.1.g9ca3
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
Matthias Lederhofer· Jul 13, 2006, 07:57 UTC · re: Luben Tuikov · lore

Re: [PATCH] gitweb.css: Courer fonts for commits and tree-diff

Luben Tuikov <ltuikov@yahoo.com> wrote:
Show 9 quoted lines
> --- Junio C Hamano <junkio@cox.net> wrote:
> > But if I really have to, I would say this makes things uglier
> > and less readable.  Maybe asking for monospace is less yucky but
> > naming Courier explicitly?
> 
> Sometimes people would put ASCII art in their commit messages,
> things like a simple table, compiler output, log output, etc,
> and I wanted to _preserve_ the intent of such output.  This is why
> I changed it to Courier. (sorry for the misspelling of Courier)

monospace should do this too, see[1]. I think it should be added as fallback[2] at least but I see no reason not to use font-family: monospace.

[1] http://www.w3.org/TR/REC-CSS2/fonts.html#monospace-def [2] http://www.w3.org/TR/REC-CSS2/fonts.html#generic-font-families

← back to recent threads