Viacheslav Bulynkin
Viacheslav Bulynkin
[Expected doc.docx](https://github.com/EvotecIT/PSWriteOffice/files/10940492/doc.docx)
Hmm, it means that I can underline only the whole paragraph, not a part of a string? "We are" shouldn't be underlined. Maybe, I can use something like non-breaking space?...
I found the workaround! It works when I use ```powershell $p2.Underline = 'Single' ``` Initially, the value of `$p2.Underline` was `Words`.
Right before `Save-OfficeWord` cmdlet: ```powershell # Set to underline spaces $doc.Paragraphs |? underline |% {$_.underline = 'Single'} ```
Why everything? It simply set the underline mode I need only in the paragraphs have underline set. Perhaps I can't figure out the whole thing.
Of course it was created with Word, because I hadn't been able to do it without Word and I needed to illustrate what I wanted. Dashed underline works, but I...
How to add not a paragraph but a new line in the same paragraph? It is indicated by the Enter symbol below and can be typed by Shift+Enter keys. 
Thank you! However, I don't clearly understand how to combine it with the syntax ``` New-OfficeWordText -Document $doc -Alignment Center -Text "Adding paragraph2 with some text and pressing SHIFT+ENTER" ```...
Works great, thank you very much for the explanation!
> I updated mRemoteNG to a latest nightly build but it didn't help.