EDIT.COM Will Convert Eight Spaces to a Tab in Some Cases (74196)

The information in this article applies to:
    Microsoft MS-DOS operating system 5.0

This article was previously published under Q74196


In some situations, EDIT.COM will convert eight leading spaces to a tab character. This reduces the total size of the file by seven bytes for each set of spaces converted to a tab.


If a file containing tab characters is loaded into Edit, all lines with eight or more leading spaces will have groups of eight spaces converted to tab characters. The following steps will reproduce the symptoms:

    Create a two-line file with Edlin as follows:
               EDLIN NEW.TXT
          <TAB>LINE ONE
          <6 SPACES>LINE TWO

    Edit the file with EDIT.COM and append the following line:

    Save the file. The third line will now be <tab>SPACES.
    To verify this, bring the file up under Edlin.
    Press 3 and press ENTER.
    Press the F1 key. The cursor will jump to the right one tab (six spaces). Any other groups of eight or more spaces at the front of a line will have groups of eight spaces replaced by tabs.
Microsoft is researching this problem and will post new information here as it becomes available.

Modification Type: Major Last Reviewed: 11/22/1999
Keywords: KB74196