Title

Message

Confirm

<< DiscussionsReply

Macro or way to remove additional line breaks added between every line when copying formatted fields (Salesforce)

kmagness
2 discussion posts
I'm running into an issue that I think is a byproduct of Salesforce field formatting, and the fact that Clipboardfusion doesn't copy and store formatted text yet.

If I CTRL + C then CTRL + V text in Salesforce, with auto-scrubbing off, it pastes exactly the way it should. If I copy and paste it via the Clipboard Fusion history menu, or have auto-scrubbing on, I get an extra line break added between every line.
Example:

Code



Turns into:

Code



The built in functions to remove line breaks doesn't work due to not wanting all line breaks removed. I'm only looking to have the extras scrubbed if possible. Any help or ideas would be amazing, thank you!
• Attachment [protected]: ClipboardFusion_2021_16-18_45_57.png [12,097 bytes]
17 days ago  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Hello,

Are you looking to keep single line breaks, but remove any double/triple entries?

Thanks!
16 days ago  • #2
kmagness
2 discussion posts
I think that would be the best workaround for this situation. My goal is to have it look the same way it does in the source field. One issue might be the single line breaks added between lines that weren't there originally. I'm not sure how to fix that scenario. Thanks for taking a look!
16 days ago  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You can actually remove triple and double linebreaks with a text replace Trigger. Please see the attached screenshot for reference
• Attachment: TriggerRemoveTripleAndDoubleLineBreaks.png [64,608 bytes]
TriggerRemoveTripleAndDoubleLineBreaks.png
TriggerRemoveTripleAndDoubleLineBreaks.png
9 days ago  • #4
Was this helpful?    
<< DiscussionsReply