Hi, Flin,
You are a connaisseur, Cato my yellow friend!
The macro that was in my link.
copy the lines below and put these in a 'new' macro:
using System;
using System.Text.RegularExpressions;
public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
Regex regex = new Regex(@" {2,}");
return regex.Replace(text, " ").Trim();
}
}
Otherwise, do this in your scrubbing-trigger, Add, Text Replace:
Replace text, and than type 6 spaces to be replaced by 1 space
Replace text, and than type 5 spaces to be replaced by 1 space
and so on (4,3 ..) and ending with:
Replace text, and than type 2 spaces to be replaced by 1 space
In whatever pdf-text or other text copied, most redundant spaces will be eliminated.
Regards,
Dr Schultz from the village, and my dog doesn't bite ....