Closed tpcarman closed 2 years ago
I think I've got to the bottom of this and the solution is not easy. Plain text output is not affected, but HTML output suffers the same fate. Here's a summary:
<p><r>My paragraph text</r></p>
A solution to this is to add another parameter set to the Paragraph
function to accept a script block for each "run":
Document ParagraphRuns {
Paragraph {
Run "This is the first part of a paragraph"
Run "This will append the second part of a paragraph"
}
}
Would this proposal work? This won't break existing functionality, but would probably require dropping (or deprecating) the -NoNewLine
parameter on the Paragraph
function.
Note: I don't think that Run
would be a good choice of function name, but would like some suggestions!
Not that it helps, but it seems I did know about this already 😊.
@tpcarman This functionality is now available in the dev branch if you want to take it for a spin. You will need to use the new Paragraph { }
implementation for it to work (the old implementation will remain for compatibility and ease of use). See Example38.ps1
for more details.
When using
Paragraph -NoNewLine
, text is still moved to a new line