Inform: Newlines in the Headline

Symptom

This is the most common blatantly-obvious bug I see in Inform games. It goes like this:

   Welcome to the game....

The One-Room Game
An Interactive, But Very Simple, Experience
Copyright 2000 by J. Random Ostenveldt.
Release 1 / Serial number 000000 / Inform v6.21 Library 6/10

A Room
Not much here.

>verbose
The One-Room Game
 is now in its "verbose" mode, which always gives long descriptions of locations (even if you've been there before).

Note the line-break in the middle of the "verbose" message. (A line-break followed by a space, actually.) What causes this? I will tell you now:

  
! Wrong !
Constant Story "The One-Room Game^";
Constant Headline "An Interactive, But Very Simple, Experience^
  Copyright 2000 by J. Random Ostenveldt.^";

There is a line-break character ("^") in the Story constant. This constant is used in the game banner, but it's also used in the verbose/brief/superbrief messages. So it must be just the title of the game -- no linebreaks (before or after), subtitles, copyright messages, or so on.

(In extreme cases, this bug manifests like this:

   >verbose
The One-Room Game
(or, How To Show Off Without Looking Around)
[First-time players should type "about"!]
 is now in its "verbose" mode, which always gives long descriptions of locations (even if you've been there before).

I leave it to your imagination what the Story constant looks like here.)

Solution

Put the line-break (and other text) at the beginning of the Headline constant, not the end of the Story.

  
Constant Story "The One-Room Game";
Constant Headline "^An Interactive, But Very Simple, Experience^
  Copyright 2000 by J. Random Ostenveldt.^";

Prevention

Test the "verbose", "brief", and "superbrief" commands in your game; make sure the output is clean.
More Inform Tricks