* [PATCH] view: tweak attribution line
@ 2014-10-05 0:25 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2014-10-05 0:25 UTC (permalink / raw)
To: meta; +Cc: Eric Wong
This reduces unnecessary white space and consistently places
the attribution under the Subject.
---
lib/PublicInbox/View.pm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index d64aca4..9974cfa 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -79,15 +79,15 @@ sub index_entry {
$rv .= "$pfx<a\nname=\"$name\"></a>" .
"<a\nname=\"s$midx\"></a>" .
- "<b>$subj</b>\n" .
- "$pfx<a\nhref=\"#s$next\">next</a>";
+ "<b>$subj</b>\n$pfx";
+ $rv .= "- by $from @ $ts - ";
+
+ $rv .= "<a\nhref=\"#s$next\">next</a>";
if ($prev >= 0) {
$rv .= "/<a\nhref=\"#s$prev\">prev</a>";
- } else {
- $rv .= ' ';
}
- $rv .= " by $from @ $ts\n\n";
+ $rv .= "\n\n";
my $irp = $header_obj->header_raw('In-Reply-To');
my ($anchor_idx, $anchor);
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-10-05 0:25 7% [PATCH] view: tweak attribution line Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).