commit fdd79f2f3fc3c04e0d548d15436f36fc7d39bb52 from: Omar Polo via: Thomas Adam date: Tue Sep 12 21:34:33 2023 UTC gotweb: style improvements First round of polishing, css simplification and responsiveness for gotwebd. The new HTML is now actually usable on text-only browsers and the fonts are bigger on smaller screens; close to no changes for "normal" desktop usage. A few regressions were spotted by Lucas on IRC, thanks! No objections from stsp@ commit - 012b711c71ba806caed108beb296ac2161deda35 commit + fdd79f2f3fc3c04e0d548d15436f36fc7d39bb52 blob - 5259d968ffb89ab3d1148ac90dc8dfffcada9857 blob + 9c9ca1cfdede56727c229a6af5d944e28b121533 --- gotwebd/files/htdocs/gotwebd/gotweb.css +++ gotwebd/files/htdocs/gotwebd/gotweb.css @@ -15,7 +15,9 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* general sections */ +*, *::after, *::before { + box-sizing: border-box; +} a { color: #444444; @@ -30,9 +32,15 @@ body { color: #000000; margin: 0; padding: 0; - font-family: Arial, sans-serif; + font-family: sans-serif; + font-size: 16px; } +pre { + font-family: monospace; + margin: 0; +} + .diff_minus, .diff_submodule { color: magenta; } @@ -50,45 +58,34 @@ body { color: blue; } -#logo { - height: 50px; -} .refs_str { background-color: #243647; color: #ffffff; font-style: italic; + white-space: pre; } -.dotted_line { - clear: left; - float: left; - width: 100%; +hr { + margin: 0; + height: 0; border-top: 1px dotted #444444; } #header { - overflow: auto; - width: 100%; background-image: linear-gradient(to right, White, LightSlateGray); } #header a { color: #ffffff; - font-size: 1.2em; text-decoration: none; } #header a:hover { color: Gold; - font-size: 1.2em; text-decoration: none; } #site_path { - clear: left; - float: left; overflow: auto; width: 100%; background-color: #243647; } #site_link { - float: left; - width: 40%; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; @@ -100,18 +97,10 @@ body { text-decoration: none; } #got_link { - float: left; padding-bottom: 10px; padding-top: 10px; } -#content { - width: 100%; - float: left; - clear: both; -} #np_wrapper { - clear: left; - float: left; width: 100%; border-bottom: 1px dotted #444444; background-color: #f5fcfb; @@ -122,7 +111,6 @@ body { text-align: center; } #nav_prev { - float: left; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; @@ -136,8 +124,6 @@ body { overflow: hidden; } .navs_wrapper { - clear: left; - float: left; width: 100%; background-color: #ced7e0; } @@ -145,11 +131,13 @@ body { padding-left: 10px; padding-top: 2px; padding-bottom: 2px; - font-size: .8em; } +@media (min-width: 680px) { + .navs { + font-size: .8em; + } +} #site_owner_wrapper { - clear: left; - float: left; width: 100%; background-color: LightSlateGray; color: #ffffff; @@ -158,215 +146,86 @@ body { padding-left: 10px; padding-top: 5px; padding-bottom: 5px; -} -#description_title { - clear: left; - float: left; - width: 6.5em; - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; -} -#description { - float: left; - width: 72%; - padding-top: 5px; - padding-bottom: 5px; -} -#repo_owner_title { - clear: left; - float: left; - width: 6.5em; - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; -} -#repo_owner { - float: left; - width: 72%; - padding-top: 5px; - padding-bottom: 5px; -} -#last_change_title { - clear: left; - float: left; - width: 6.5em; - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; -} -#last_change { - float: left; - width: 72%; - padding-top: 5px; - padding-bottom: 5px; -} -#cloneurl_title { - clear: left; - float: left; - width: 6.5em; - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; -} -#cloneurl { - float: left; - width: 72%; - padding-top: 5px; - padding-bottom: 5px; - overflow: auto; - white-space: pre-wrap; -} - -.header_commit_title { - clear: left; - float: left; - width: 6.5em; - padding-left: 10px; - padding-top: 2px; - padding-bottom: 2px; -} -.header_commit { - float: left; - width: 72%; - padding-top: 2px; - padding-bottom: 2px; -} -.header_author_title { - clear: left; - float: left; - width: 6.5em; - padding-left: 10px; - padding-top: 2px; - padding-bottom: 2px; -} -.header_author { - float: left; - width: 72%; - padding-top: 2px; - padding-bottom: 2px; -} -.header_age_title { - clear: left; - float: left; - width: 6.5em; - padding-left: 10px; - padding-top: 2px; - padding-bottom: 2px; + margin: 0; } -.header_age { - float: left; - width: 72%; - padding-top: 2px; - padding-bottom: 2px; -} -#header_commit_msg_title { - clear: left; - float: left; - width: 6.5em; - padding-left: 10px; - padding-top: 2px; - padding-bottom: 2px; -} -#header_commit_msg { - float: left; - width: 72%; - padding-top: 2px; - padding-bottom: 2px; - white-space: pre-wrap; -} -#header_tree_title { - clear: left; - float: left; - width: 6.5em; - padding-left: 10px; - padding-top: 2px; - padding-bottom: 2px; -} -#header_tree { - float: left; - width: 72%; - padding-top: 2px; - padding-bottom: 2px; -} #err_content { - clear: left; - float: left; padding-left: 20px; padding-top: 20px; padding-bottom: 20px; } -#briefs_title_wrapper { - clear: left; - float: left; - width: 100%; +header.subtitle { background-color: LightSlateGray; +} +header.subtitle h2 { + margin: 0; + padding: 5px 10px; + font-size: 1rem; + font-weight: normal; color: #ffffff; } -#briefs_title { - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; + +.brief { + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: wrap; } -#briefs_content { - clear: left; - float: left; - width: 100%; +.brief p { + margin: 0; } +.brief_meta { + flex-grow: 0; + flex-shrink: 0; +} +.briefs_age, .briefs_author { display: inline-block; } .briefs_age { padding-left: 10px; padding-top: 5px; padding-bottom: 5px; - float: left; - width: 7.5em; - overflow: auto; + width: 140px; } .briefs_author { - float: left; padding-top: 5px; padding-bottom: 5px; width: 8.5em; font-style: italic; - overflow: auto; } .briefs_log { - float: left; padding-left: 10px; padding-right: 10px; padding-top: 5px; padding-bottom: 5px; - width: 65%; + width: 100%; } -#tags_title_wrapper { - clear: left; - float: left; - width: 100%; - background-color: LightSlateGray; - color: #ffffff; +@media (min-width: 680px) { + .brief { + flex-wrap: nowrap; + } + .briefs_log { + width: auto; + } } -#tags_title { + +.tag_age, .tag_name, .tag_log { + display: inline-block; + vertical-align: middle; +} +.tag_age { padding-left: 10px; padding-top: 5px; padding-bottom: 5px; + width: 140px; } -#tags_content { - clear: left; - float: left; - width: 100%; -} -.tag_age { - padding-left: 10px; +.tag_name { + width: 8.5em; + font-style: italic; padding-top: 5px; padding-bottom: 5px; - float: left; - width: 7.5em; - overflow: auto; } .tag_log { - float: left; padding-left: 10px; padding-right: 10px; padding-top: 5px; @@ -375,88 +234,42 @@ body { } #tag_header_wrapper { - clear: left; - float: left; background-color: #f5fcfb; - width: 100%; } #tag_header { - float: left; padding-left: 10px; padding-top: 5px; padding-bottom: 2px; width: 80%; } -.tag { - float: left; - width: 8.5em; - font-style: italic; - padding-top: 5px; - padding-bottom: 5px; -} #tag_commit { - clear: left; - float: left; + padding-top: 20px; padding-left: 20px; padding-bottom: 20px; - white-space: pre-wrap; + overflow: auto; } #index_header { - clear: left; - float: left; - overflow: auto; - width: 100%; background-color: Khaki; } -#index_header_project { - clear: left; - float: left; - width: 20%; +.index_project, .index_project_description, .index_project_owner, +.index_project_age { + display: inline-block; padding: 10px; -} -#index_header_description { - float: left; - width: 30%; - padding: 10px; -} -#index_header_owner { - float: left; - width: 12%; - padding: 10px; -} -#index_header_age { - padding: 10px; overflow: hidden; + vertical-align: middle; } -.index_wrapper { - clear: left; - float: left; - width: 100%; -} .index_project { - float: left; width: 20%; - padding: 10px; - overflow: hidden; } .index_project_description { - float: left; width: 30%; - padding: 10px; - overflow: auto; } .index_project_owner { - float: left; - width: 12%; - padding: 10px; - overflow: hidden; + width: 25%; } .index_project_age { - float: left; - width: 14%; - padding: 10px; - overflow: visible; + width: 25%; } .index_project a { color: #444444; @@ -483,261 +296,163 @@ body { text-decoration: none; } -.commits_title_wrapper { - clear: left; - float: left; - width: 100%; - background-color: LightSlateGray; - color: #ffffff; -} -.commits_title { - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; -} .commits_content { - clear: left; - float: left; width: 100%; } .commits_header_wrapper { - float: left; background-color: #f5fcfb; - width: 100%; } .commits_header { - float: left; padding-top: 5px; padding-bottom: 2px; width: 80%; } .commit { - clear: left; - float: left; padding-left: 20px; padding-bottom: 20px; white-space: pre-wrap; } -#blame_title_wrapper, #blob_title_wrapper { - background-color: LightSlateGray; - color: #ffffff; -} -#blame_title, #blob_title_wrapper { - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; -} -#blame_content, #blob_content { - clear: left; - float: left; - width: 100%; -} #blame_header_wrapper, #blob_header_wrapper { - float: left; background-color: #f5fcfb; - width: 100%; } #blame_header, #blob_header { - float: left; padding-left: 10px; padding-top: 5px; padding-bottom: 2px; - width: 80%; } #blame, #blob { - clear: left; - float: left; + margin-top: 20px; margin-left: 20px; margin-bottom: 20px; - font-family: monospace; - white-space: pre; overflow: auto; } -.blame_wrapper, .blob_line { - clear: left; - float: left; - width: 100%; +.blob_line > a { + display: inline-block; + text-align: right; + width: 60px; + padding-right: 20px; } +.blob_code { + /* fixes the width of the first tab */ + display: inline-block; +} +.blame_number, .blame_hash, .blame_date, .blame_author, .blame_code { + display: inline-block; + vertical-align: middle; +} .blame_wrapper:target, .blob_line:target { background-color: Khaki; } .blame_number, .blob_number { - float: left; width: 6em; overflow: hidden; } .blame_hash { - float: left; width: 6em; overflow: auto; } .blame_date { - float: left; width: 7em; overflow: auto; } .blame_author { - float: left; width: 6em; overflow: hidden; } -.blame_code, .blob_code { - float:left; - width: 50%; - overflow: visible; -} -#tree_title_wrapper { - clear: left; - float: left; - width: 100%; - background-color: LightSlateGray; - color: #ffffff; -} -#tree_title { - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; -} -#tree_content { - clear: left; - float: left; - width: 100%; -} -#tree_header_wrapper { - clear: left; - float: left; - background-color: #f5fcfb; - width: 100%; -} #tree_header { - float: left; + background-color: #f5fcfb; padding-left: 10px; padding-top: 5px; padding-bottom: 2px; - width: 80%; } #tree { - clear: left; - float: left; margin-left: 20px; margin-top: 20px; margin-bottom: 20px; - font-family: monospace; + border-collapse: collapse; } .tree_wrapper { - clear: left; - float: left; - width: 100%; background-color: #d8f3ef; } .tree_wrapper:nth-child(even) { background-color: #ffffff; } .tree_line { - clear: left; - float: left; + font-family: monospace; width: 20em; - padding: 1px; + padding: 5px; } .tree_line_blank { - float: left; padding: 1px; width: 9.5em; } -#diff_title_wrapper { - clear: left; - float: left; - width: 100%; - background-color: LightSlateGray; - color: #ffffff; -} -#diff_title { - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; -} -#diff_content { - clear: left; - float: left; - width: 100%; -} #diff_header_wrapper { - float: left; background-color: #f5fcfb; - width: 100%; } #diff_header { - float: left; padding-left: 10px; padding-top: 5px; padding-bottom: 2px; - width: 80%; } #diff { - clear: left; - float: left; + margin-top: 20px; margin-left: 20px; margin-bottom: 20px; - font-family: monospace; - white-space: pre; + overflow: auto; } -.diff_line { - clear: left; - float: left; -} #summary_wrapper { - clear: left; - float: left; - width: 100%; background-color: Khaki; } -#branches_title_wrapper { - clear: left; - float: left; - width: 100%; - background-color: LightSlateGray; - color: #ffffff; +dl { + padding: 0; + margin: 0; + display: flex; + flex-wrap: wrap; } -#branches_title { - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; +dt { + padding: 3px 7px; + width: 120px; } -#branches_content { - clear: left; - float: left; - width: 100%; +dd { + padding: 3px 7px; + margin-left: auto; + width: calc(100% - 130px); + flex-grow: 2; } -.branches_wrapper { - clear: left; - float: left; +.clone-url { + white-space: pre-wrap; +} + +.commit-msg { + white-space: pre-wrap; +} + +.commit-id { width: 100%; + display: inline-block; + overflow: hidden; + text-overflow: ellipsis; } + +.branches_age, .branches_space, .branch { + display: inline-block; + vertical-align: middle; +} .branches_age { padding-left: 10px; padding-top: 5px; padding-bottom: 5px; - float: left; - width: 7.5em; - overflow: auto; + width: calc(140px + 8.5em); } -.branches_space { - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; - float: left; - width: 8.5em; - overflow: auto; -} .branch { - float: left; padding-right: 10px; padding-top: 5px; padding-bottom: 5px; + padding-left: 10px; } blob - 5434c5c0715dcf16578744c6bb071b72488515bb blob + b87d986adf171cf49aea4b41631dbcad1d0a3e9c --- gotwebd/pages.tmpl +++ gotwebd/pages.tmpl @@ -74,7 +74,7 @@ static inline int rss_author(struct template *, char * {{ srv->site_name }} - + @@ -85,42 +85,40 @@ static inline int rss_author(struct template *, char * -
- -
- {{ render body(tp) }} -
-
- {{ if srv->show_site_owner }} - {{ srv->site_owner }} - {{ end }} -
-
-
-
+ +
+ {{ render body(tp) }} +
+
+

+ {{ if srv->show_site_owner }} + {{ srv->site_owner }} + {{ end }} +

+
{{ end }} @@ -145,21 +143,21 @@ static inline int rss_author(struct template *, char * struct server *srv = c->srv; !}
-
+
Project
{{ if srv->show_repo_description }} -
+
Description
{{ end }} {{ if srv->show_repo_owner }} -
+
Owner
{{ end }} {{ if srv->show_repo_age }} -
+
Last Change
{{ end }} @@ -235,7 +233,7 @@ static inline int rss_author(struct template *, char * {{ " | " }} rss
-
+
{{ end }} @@ -265,9 +263,9 @@ static inline int rss_author(struct template *, char * .headref = qs->headref, }; !} -
-
Commit Briefs
-
+
+

Commit Briefs

+
{{ tailq-foreach rc &t->repo_commits entry }} {! @@ -282,20 +280,25 @@ static inline int rss_author(struct template *, char * if (tmp) *tmp = '\0'; !} -
- {{ render gotweb_render_age(tp, rc->committer_time, TM_DIFF) }} -
-
- {{ rc->committer }} -
-
- - {{ rc->commit_msg }} - - {{ if rc->refs_str }} - {{ " " }} ({{ rc->refs_str }}) - {{ end }} - +
+

+ + {{ render gotweb_render_age(tp, rc->committer_time, TM_DIFF) }} + + {{" "}} + + {{ rc->committer }} + +

+

+ + {{ rc->commit_msg }} + + {{ if rc->refs_str }} + {{ " " }} ({{ rc->refs_str }}) + {{ end }} + +

-
+
{{ end }} {{ render gotweb_render_more(tp, BRIEFS) }}
@@ -389,9 +392,9 @@ static inline int rss_author(struct template *, char * .path = repo_dir->name, }; !} -
-
Commits
-
+
+

Commits

+
{{ tailq-foreach rc &t->repo_commits entry }} {! @@ -399,22 +402,22 @@ static inline int rss_author(struct template *, char * tree.commit = rc->commit_id; !}
-
-
Commit:
-
{{ rc->commit_id }}
-
From:
-
{{ rc->author }}
+
+
Commit:
+
{{ rc->commit_id }}
+
From:
+
{{ rc->author }}
{{ if strcmp(rc->committer, rc->author) != 0 }} -
Via:
-
{{ rc->committer }}
+
Via:
+
{{ rc->committer }}
{{ end }} -
Date:
-
+
Date:
+
{{ render gotweb_render_age(tp, rc->committer_time, TM_LONG) }} -
-
+ +
-
+
{{ "\n" }} {{ rc->commit_msg }} @@ -426,7 +429,7 @@ static inline int rss_author(struct template *, char * tree
-
+
{{ end }} {{ render gotweb_render_more(tp, COMMITS) }}
@@ -439,21 +442,21 @@ static inline int rss_author(struct template *, char * struct got_blob_object *blob = t->blob; struct repo_commit *rc = TAILQ_FIRST(&t->repo_commits); !} -
-
Blob
-
+
+

Blob

+
-
-
Date:
-
- {{ render gotweb_render_age(tp, rc->committer_time, TM_LONG) }} -
-
Message:
-
{{ rc->commit_msg }}
-
+
+
Date:
+
+ {{ render gotweb_render_age(tp, rc->committer_time, TM_LONG) }} +
+
Message:
+
{{ rc->commit_msg }}
+
-
+
       {{ render got_output_blob_by_lines(tp, blob, gotweb_render_blob_line) }}
@@ -473,10 +476,8 @@ static inline int rss_author(struct template *, char *
 		return -1;
 !}
 
- -
{{ line }}
+ {{ lineno }} + {{ line }}
{{ end }} @@ -486,26 +487,26 @@ static inline int rss_author(struct template *, char * struct transport *t = c->t; struct repo_commit *rc = TAILQ_FIRST(&t->repo_commits); !} -
-
Tree
-
+
+

Tree

+
-
-
Tree:
-
{{ rc->tree_id }}
-
Date:
-
+
+
Tree:
+
{{ rc->tree_id }}
+
Date:
+
{{ render gotweb_render_age(tp, rc->committer_time, TM_LONG) }} -
-
Message:
-
{{ rc->commit_msg }}
-
+ +
Message:
+
{{ rc->commit_msg }} +
-
-
+
+ {{ render got_output_repo_tree(c, gotweb_render_tree_item) }} - +
{{ end }} @@ -553,21 +554,20 @@ static inline int rss_author(struct template *, char * else if (mode & S_IXUSR) modestr = "*"; !} -
+ {{ if S_ISDIR(mode) }} - -
 
+ {{ else }} - - + {{ end }} -
+ {{ finally }} {! free(dir); @@ -596,9 +596,9 @@ static inline int rss_author(struct template *, char * commit_found = qs->commit == NULL; !} -
-
Tags
-
+
+

Tags

+
{{ if t->tag_count == 0 }}
@@ -647,7 +647,7 @@ static inline int rss_author(struct template *, char *
{{ render gotweb_render_age(tp, rt->tagger_time, TM_DIFF) }}
-
{{ tag_name }}
+
{{ tag_name }}
-
+
{{ end }} {{ define gotweb_render_tag(struct template *tp) }} @@ -680,32 +680,31 @@ static inline int rss_author(struct template *, char * if (strncmp(tag_name, "refs/", 5) == 0) tag_name += 5; !} -
-
Tag
-
+
+

Tag

+
-
-
Commit:
-
- {{ rt->commit_id }} +
+
Commit:
+
+ {{ rt->commit_id }} {{ " " }} ({{ tag_name }}) -
-
Tagger:
-
{{ rt->tagger }}
-
Date:
-
+ +
Tagger:
+
{{ rt->tagger }}
+
Date:
+
{{ render gotweb_render_age(tp, rt->tagger_time, TM_LONG)}} -
-
Message:
-
{{ rt->commit_msg }}
-
-
-
- {{ "\n" }} + +
Message:
+
{{ rt->commit_msg }}
+ +
+
       {{ rt->tag_commit }}
-    
+
{{ end }} @@ -720,35 +719,34 @@ static inline int rss_author(struct template *, char * size_t linesize = 0; ssize_t linelen; !} -
-
Commit Diff
-
+
+

Commit Diff

+
-
-
Commit:
-
{{ rc->commit_id }}
-
From:
-
{{ rc->author }}
+
+
Commit:
+
{{ rc->commit_id }}
+
From:
+
{{ rc->author }}
{{ if strcmp(rc->committer, rc->author) != 0 }} -
Via:
-
{{ rc->committer }}
+
Via:
+
{{ rc->committer }}
{{ end }} -
Date:
-
+
Date:
+
{{ render gotweb_render_age(tp, rc->committer_time, TM_LONG) }} -
-
Message:
-
{{ rc->commit_msg }}
-
+ +
Message:
+
{{ rc->commit_msg }}
+
-
-
- {{ "\n" }} +
+
     {{ while (linelen = getline(&line, &linesize, fp)) != -1 }}
       {{ render diff_line(tp, line) }}
     {{ end }}
-  
+
{{ finally }} {! free(line); !} @@ -781,7 +779,7 @@ static inline int rss_author(struct template *, char * if (nl) *nl = '\0'; !} -
{{ line }}
+{{ line }}{{"\n"}} {{ end }} {{ define gotweb_render_branches(struct template *tp, @@ -789,9 +787,9 @@ static inline int rss_author(struct template *, char * {! struct got_reflist_entry *re; !} -
-
Branches
-
+
+

Branches

+
{{ tailq-foreach re refs entry }} {{ if !got_ref_is_symbolic(re->ref) }} @@ -828,11 +826,10 @@ static inline int rss_author(struct template *, char * url.headref = refname; !} -
+
{{ render gotweb_render_age(tp, age, TM_DIFF) }}
-
 
@@ -847,8 +844,8 @@ static inline int rss_author(struct template *, char * commits
-
-
+
+ {{ end }} {{ define gotweb_render_summary(struct template *tp) }} @@ -858,26 +855,26 @@ static inline int rss_author(struct template *, char * struct transport *t = c->t; struct got_reflist_head *refs = &t->refs; !} -
+
{{ if srv->show_repo_description }} -
Description:
-
{{ t->repo_dir->description }}
+
Description:
+
{{ t->repo_dir->description }}
{{ end }} {{ if srv->show_repo_owner }} -
Owner:
-
{{ t->repo_dir->owner }}
+
Owner:
+
{{ t->repo_dir->owner }}
{{ end }} {{ if srv->show_repo_age }} -
Last Change:
-
+
Last Change:
+
{{ render gotweb_render_age(tp, t->repo_dir->age, TM_DIFF) }} -
+ {{ end }} {{ if srv->show_repo_cloneurl }} -
Clone URL:
-
{{ t->repo_dir->url }}
+
Clone URL:
+
{{ t->repo_dir->url }}
{{ end }} -
+ {{ render gotweb_render_briefs(tp) }} {{ render gotweb_render_tags(tp) }} {{ render gotweb_render_branches(tp, refs) }} @@ -890,23 +887,22 @@ static inline int rss_author(struct template *, char * struct transport *t = c->t; struct repo_commit *rc = TAILQ_FIRST(&t->repo_commits); !} -
-
Blame
-
+
+

Blame

+
-
-
Date:
-
+
+
Date:
+
{{ render gotweb_render_age(tp, rc->committer_time, TM_LONG) }} -
-
Message:
-
{{ rc->commit_msg }}
-
+ +
Message:
+
{{ rc->commit_msg }}
+
-
-
- {{ "\n" }} +
+
     {!
 	err = got_output_file_blame(c, &blame_line);
 	if (err && err->code != GOT_ERR_CANCELLED)
@@ -915,7 +911,7 @@ static inline int rss_author(struct template *, char *
 	if (err)
 		return (-1);
     !}
-  
+
{{ end }}