]> code.citadel.org Git - citadel.git/commitdiff
When printing a message, the page title is now the user's
authorArt Cancro <ajc@citadel.org>
Thu, 15 May 2008 02:54:23 +0000 (02:54 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 15 May 2008 02:54:23 +0000 (02:54 +0000)
display name instead of 'Printable view'.  This seems to be the
standard practice, presumably to designate the owner of a print
job when using a shared printer.

webcit/messages.c

index 5dd45aa111c3a0991904e79b18c0abede78cc3b9..bb6948ccf9851574c46932e64cf5a838c5294f8d 100644 (file)
@@ -1385,11 +1385,11 @@ ENDBODY:        /* If there are attached submessages, display them now... */
 
 
 
-/**
- * \brief Unadorned HTML output of an individual message, suitable
+/*
+ * Unadorned HTML output of an individual message, suitable
  * for placing in a hidden iframe, for printing, or whatever
  *
- * \param msgnum_as_string Message number, as a string instead of as a long int
+ * msgnum_as_string == Message number, as a string instead of as a long int
  */
 void embed_message(char *msgnum_as_string) {
        long msgnum = 0L;
@@ -1401,10 +1401,10 @@ void embed_message(char *msgnum_as_string) {
 }
 
 
-/**
- * \brief Printable view of a message
+/*
+ * Printable view of a message
  *
- * \param msgnum_as_string Message number, as a string instead of as a long int
+ * msgnum_as_string == Message number, as a string instead of as a long int
  */
 void print_message(char *msgnum_as_string) {
        long msgnum = 0L;
@@ -1418,8 +1418,9 @@ void print_message(char *msgnum_as_string) {
                PACKAGE_STRING);
        begin_burst();
 
-       wprintf("\r\n\r\n<html>\n"
-               "<head><title>Printable view</title></head>\n"
+       wprintf("\r\n\r\n<html>\n<head><title>");
+       escputs(WC->wc_fullname);
+       wprintf("</title></head>\n"
                "<body onLoad=\" window.print(); window.close(); \">\n"
        );
        
@@ -3682,8 +3683,8 @@ void move_msg(void)
 
 
 
-/**
- * \brief Confirm move of a message
+/*
+ * Confirm move of a message
  */
 void confirm_move_msg(void)
 {
@@ -3734,6 +3735,3 @@ void confirm_move_msg(void)
        wprintf("</CENTER>\n");
        wDumpContent(1);
 }
-
-
-/*@}*/