pnpframework icon indicating copy to clipboard operation
pnpframework copied to clipboard

ConvertTo-PnPPage transformed text formatting issue

Open Sharepoint2k22 opened this issue 2 years ago • 0 comments

### Reporting an Issue

Using PnP v 1.9.0 (PowerShell v 7.2.1) to convert an on-prem SharePoint 2013 publishing pages to modern equivalent in SPO we are seeing issues with the text formatting after conversion.

Expected behaviour

Transformed text retains original formatting

Actual behaviour

Converted text has a carriage return at the beginning of the text which is not present in the source. In addition we are seeing different sizes of text (on some pages) and/or removed carriage returns between paragraph's on others.

Interestingly, the missing carriage returns/text sizes are sometimes reinstated if the page is put into edit mode and then published. Please see below:

Source SP2013 page image

Transformed SPO page image

Transformed SPO page when put into edit: image

Steps to reproduce behaviour

$target = Connect-PnPOnline https://domain.sharepoint.com/sites/site -ReturnConnection $source = Connect-PnPOnline http://sourcesite -Credentials (Get-Credential) -ReturnConnection -TransformationOnPrem ConvertTo-PnPPage -Identity "pagename.aspx" -PublishingPage -TargetConnection $target -Connection $source

PowerShell versions

PnP.Powershell 1.9.0, PowerShell 7.2.1

Operating system

Windows 10, version 1809 (OS Build 17763.379)

PS - Many thanks for all the useful information/help provided thus far.

Sharepoint2k22 avatar Apr 05 '22 13:04 Sharepoint2k22