fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
NO SPACES
Syntax:
NO SPACES
[NO] SPACE BEFORE ...
[NO] SPACE AFTER ...
Function:
The SPACE BEFORE, SPACE AFTER and NO SPACES commands control the spacing of the Fortran code written by fpt.
fpt writes one space character between two consecutive tokens on the same line according to the following rules:
The spacing is specified by the commands:
NO SPACES
The token may be:
Note that the NO SPACE BEFORE and NO SPACE AFTER commands do not remove spaces if these are required after the preceding token or before the next one.
The NO SPACES command removes all unnecessary spaces. It is equivalent to NO SPACE BEFORE all tokens and NO SPACE AFTER all tokens. Note that it does not result in the removal of all space characters because a space is still inserted between consecutive alphanumeric strings, as in for example, INTEGER I.
When a format is set up, it is often convenient to begin with a NO SPACES command and then to add spaces as appropriate.
The SHOW FORMAT command is used interactively to display the current format settings. They are saved to an fsp file by the SAVE FORMAT command.
Example formats are distributed in the files spaced.fsp, compact.fsp and free_format.fsp in the main fpt directory.
Where to Use these Commands
Operating system command line | Yes |
Configuration file, config.fsp | Yes |
Specification (fsp) files, *.fsp | Yes |
Interactively, to FPT> prompt | Yes |
Interactive command files | Yes |
Embedded in the Fortran code | No |
Default
NO SPACES
(Note that defaults for format are usually redefined in the configuration file)
See Also
Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.