formatting fixup (1 of 2)
Replace instances of strings split across lines which rely on C89/C90 implicit concatenation of string literals to splice them together with single strings that are outdented relative to the code that uses them. It's uglier but it won't break compile for pre-ANSI compilers. This covers many files in src/ that only have one or two such split strings. There are several more files which have three or more. Those will eventually be '(2 of 2)'. Noticed along the way: the fake mail message/subject Report bugs to devteam@nethack.org. wasn't using its format string of "Report bugs to %s.", so would have just shown our email address. Doesn't anybody enable fake mail anymore? I modified that format to enclose the address within angle brackets and made a similar change for the 'contact' choice of the '?' command.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 pager.c $NHDT-Date: 1436234837 2015/07/07 02:07:17 $ $NHDT-Branch: master $:$NHDT-Revision: 1.78 $ */
|
||||
/* NetHack 3.6 pager.c $NHDT-Date: 1436754893 2015/07/13 02:34:53 $ $NHDT-Branch: master $:$NHDT-Revision: 1.79 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1184,6 +1184,7 @@ docontact()
|
||||
{
|
||||
winid cwin = create_nhwindow(NHW_TEXT);
|
||||
char buf[BUFSZ];
|
||||
|
||||
if (sysopt.support) {
|
||||
/*XXX overflow possibilities*/
|
||||
Sprintf(buf, "To contact local support, %s", sysopt.support);
|
||||
@@ -1198,12 +1199,12 @@ docontact()
|
||||
}
|
||||
putstr(cwin, 0, "To contact the NetHack development team directly,");
|
||||
/*XXX overflow possibilities*/
|
||||
Sprintf(buf, "see the Contact form on our website or email %s",
|
||||
Sprintf(buf, "see the 'Contact' form on our website or email <%s>.",
|
||||
DEVTEAM_EMAIL);
|
||||
putstr(cwin, 0, buf);
|
||||
putstr(cwin, 0, "");
|
||||
putstr(cwin, 0, "For more information on NetHack, or to report a bug,");
|
||||
Sprintf(buf, "visit our website %s", DEVTEAM_URL);
|
||||
Sprintf(buf, "visit our website \"%s\".", DEVTEAM_URL);
|
||||
putstr(cwin, 0, buf);
|
||||
display_nhwindow(cwin, FALSE);
|
||||
destroy_nhwindow(cwin);
|
||||
|
||||
Reference in New Issue
Block a user