Plain text and its linesLe texte brut et ses lignes

You can open a TMX, XLIFF or HTML file in Notepad (Windows) or TextEdit (Mac) and see how it is put together. No specialized software is needed, because there is nothing in the file to decode: characters, one after another.

A line break is a character

Among those characters is the one that ends a line. You never see it, but it is in the file like any other, and it is what divides the file into lines. A file with two of them has three lines, whatever it looks like on screen.

Word processors give you a way to see them: the button usually marked ¶, which displays the invisible characters on screen, paragraph marks and line breaks along with spaces and tabs. It changes nothing in the file. It only stops hiding what is already in it.

Word wrap writes nothing

When a line is too long for the window, an editor breaks it so you can read it without scrolling sideways. That break is drawn, not written: the same file wraps differently in a narrower window, in another editor, or at a larger font size, and none of that changes the file.

The same three-line file shown in a narrow window, where it takes six rows, and in a wide window, where it takes three; the line numbers 1, 2 and 3 stay on the same sentences and the two line-break marks stay in the same places
Figure 1. A narrow window and a wide one, showing the same file. The rows move, the line breaks do not.

The two get confused because both look like a new line. The difference shows the moment you count something:

Written alternately in EN and FR, translation partly generated in both directions. Rédigé en alternance en EN et en FR, traduction en partie générée dans les deux sens. Updated 2026-08-27

Vous pouvez ouvrir un fichier TMX, XLIFF ou HTML dans le Bloc-notes (Windows) ou TextEdit (Mac) et voir comment il est construit. Aucun logiciel spécialisé n’est nécessaire, parce qu’il n’y a rien à décoder dans le fichier : des caractères, les uns après les autres.

Le saut de ligne est un caractère

Parmi ces caractères, il y en a un qui termine la ligne. Vous ne le voyez jamais, mais il est dans le fichier comme les autres, et c’est lui qui découpe le fichier en lignes. Un fichier qui en compte deux a trois lignes, quelle que soit son allure à l’écran.

Les traitements de texte offrent un moyen de les voir : le bouton marqué ¶ d’ordinaire, qui affiche à l’écran les caractères invisibles, marques de paragraphe et sauts de ligne, mais aussi espaces et tabulations. Il ne change rien au fichier. Il cesse seulement de cacher ce qui s’y trouve déjà.

Le retour à la ligne automatique n’écrit rien

Quand une ligne est trop longue pour la fenêtre, l’éditeur la coupe pour vous éviter de défiler latéralement. Cette coupure est dessinée, pas écrite : le même fichier se replie autrement dans une fenêtre plus étroite, dans un autre éditeur ou avec une police plus grande, et rien de tout cela ne change le fichier.

Le même fichier de trois lignes affiché dans une fenêtre étroite, où il occupe six rangées, puis dans une fenêtre large, où il en occupe trois ; les numéros de ligne 1, 2 et 3 restent sur les mêmes phrases et les deux marques de saut de ligne restent aux mêmes endroits
Figure 1. Une fenêtre étroite et une fenêtre large, pour le même fichier. Les rangées bougent, les sauts de ligne restent.

On confond les deux parce que l’une comme l’autre ressemble à une nouvelle ligne. La différence apparaît dès qu’il faut compter :

Written alternately in EN and FR, translation partly generated in both directions. Rédigé en alternance en EN et en FR, traduction en partie générée dans les deux sens. Mise à jour 2026-08-30

Spotted an error? Une erreur ?

Language, content, a broken link: tell me what you saw and I will fix it. Langue, contenu, lien brisé : dites-moi ce que vous avez vu et je corrige.

Sending opens your mail app with the report addressed to me. L'envoi ouvre votre application de courriel avec le signalement déjà adressé à moi.