## Text Only Exports Carriage Returns and Linefeeds Incorrectly

Q114797

The information in this article applies to:

- Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
- Microsoft Word for Windows NT, version 6.0

## SYMPTOMS

When you save a Word document as Text Only or as MS-DOS Text, a carriage return without linefeed (CR) or a linefeed without carriage return (LF) is written into the output text file. This occurs when the document contains a section break immediately preceded by or followed by a page break or newline character.
Word should instead always export matching carriage-return/linefeed (CR/LF) combinations.

## CAUSE

Microsoft has confirmed this to be a problem in the Word versions listed at the beginning of this article. This problem was corrected in Word versions 7.0 and later for Windows 95.

## WORKAROUND

This problem does NOT occur with the following save options: Text Only With Line Breaks, MS-DOS Text With Linebreaks, Text With Layout, and MS-DOS Text With Layout. Therefore, if carriage-return/linefeed insertions at the end of each line in an output text file does not represent a problem for you, use one of these export options instead of the Text Only or MS-DOS Text save options.

## MORE INFORMATION

- If such a text file is subsequently opened in Windows Notepad or is reopened in Word, block characters (representing non-displayable characters) are displayed at each location where an independent carriage return or linefeed existed in the text file.
- If after reopening such a text file in Word you actually save the file in Word format, the block symbols will disappear and an extra paragraph mark will appear at each location where a carriage return without matching linefeed existed in the text file. An extra paragraph mark is not inserted for linefeeds without matching carriage returns.
- A carriage return appears in an output text file as ANSI/ASCII decimal control character 13 (hexadecimal 0D). A linefeed appears as decimal control character 10 (hex 0A). Word should be exporting only 13/10 (hex OD/0A) combinations.
- This problem may also be triggered by other Word formatting combinations than those mentioned above.

Additional query words: textconv word6 conversion converted converts transfer transfers translation translate problem 6.00a line feed CR LF CR/LF 0A0Dh 0A/ODh 0DOAh 0D/0Ah macword

Keywords : kbconversion
Issue type :
Technology :

Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use.