Trying to get all the text from a .docx document.
using (var wordDocument = WordprocessingDocument.Open(fileName as string, false)) { //получаем весь текст var text = wordDocument.MainDocumentPart.Document.Body.InnerText; Console.WriteLine(rawText); } The whole text is actually obtained and written into a variable, but, it turns out to be unformatted and we get something like this at the output: 
Although in the word file itself:
I assumed that when receiving the text, it would be at least taking into account the translation of the line, but it turned out to be not so simple.
What are the options to save the line feed?
