pretty printing of top index

---------

From: Moritz Willers (Moritz.Willers@ubsw.com)
Date: Wed May 30 2001 - 11:50:43 CDT


hi,

I added the following change to print.c to stop hypermail from
generating an empty line saying 'XY messages sorted by:' and then
nothing if the 'avoid_top_indices' is set to all sort orders. I only
want the sorting to be available in the monthly sections. not over the
entire archive.

I'd be happy if you could include that change in the next update, so I
won't have to reapply it again:)

thanks - Moritz

pretty printed change:

% diff -u print.c-orig print.c
--- print.c-orig Wed May 30 17:38:52 2001
+++ print.c Wed May 30 17:39:21 2001
@@ -324,8 +324,12 @@
        fprintf(fp, "<strong><a href=\"#end\">%s</a></strong><br>\n",
                lang[MSG_MOST_RECENT_MESSAGES]);
 
- fprintf(fp, "<strong>%d %s %s:</strong> \n", amountmsgs,
- lang[MSG_ARTICLES], lang[MSG_SORTED_BY]);
+ if (called_from != AUTHOR_INDEX && show_index[dlev][AUTHOR_INDEX]
||
+ called_from != DATE_INDEX && show_index[dlev][DATE_INDEX] ||
+ called_from != THREAD_INDEX && show_index[dlev][THREAD_INDEX]
||
+ called_from != SUBJECT_INDEX &&
show_index[dlev][SUBJECT_INDEX])
+ fprintf(fp, "<strong>%d %s %s:</strong> \n", amountmsgs,
+ lang[MSG_ARTICLES], lang[MSG_SORTED_BY]);
 
     if (called_from != AUTHOR_INDEX && show_index[dlev][AUTHOR_INDEX])
        fprintf(fp, "<a href=\"%s\">[ %s ]</a>\n",

in format that can be fed to ed ...

% diff -e print.c-orig print.c
327,328c
    if (called_from != AUTHOR_INDEX && show_index[dlev][AUTHOR_INDEX] ||
        called_from != DATE_INDEX && show_index[dlev][DATE_INDEX] ||
        called_from != THREAD_INDEX && show_index[dlev][THREAD_INDEX] ||
        called_from != SUBJECT_INDEX && show_index[dlev][SUBJECT_INDEX])
            fprintf(fp, "<strong>%d %s %s:</strong> \n", amountmsgs,
                lang[MSG_ARTICLES], lang[MSG_SORTED_BY]);
..

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


---------

This archive was generated by hypermail 2.1.5.