View Single Post
 
Old 01-12-2021, 03:20 PM
Rolo18 Rolo18 is offline Windows 10 Office 2016
Novice
 
Join Date: Mar 2020
Posts: 20
Rolo18 is on a distinguished road
Default Removing and replacing XML file words returning blank spaces/linebreaks

Hi,

I currently have a script for a Macro that changes or deletes multiple XML files words or sentences.
Although when I run this Macro whenever it deletes a certain word or sentence it is leaving blank lines/paragraphs.
For example:
<content>

<pmEntryTitle>EHII IETM</pmEntryTitle>



<pmEntryTitle> General Front Matter</pmEntryTitle>

<pmEntryTitle> Title Page</pmEntryTitle>

Does anyone have a solution or work around that I can add to my current script so when I run the macro all together it fixes it like this:
<content>
<pmEntryTitle>EHII IETM</pmEntryTitle>
<pmEntryTitle> General Front Matter</pmEntryTitle>
<pmEntryTitle> Title Page</pmEntryTitle>


Thanks for any help.
Reply With Quote