Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

Frank99's profile on WallpaperFusion.com
Hi, these two macros both change case, but macro2 also seems to add a line break after the text is replaced, while macro1 just replaces the text. What change do I need to make to macro2 to remove the added line break so it acts more like macro1? Thanks.
• Attachment [protected]: macro1.cfmacro [16,344 bytes]
• Attachment [protected]: macro2.cfmacro [41,120 bytes]
Mar 29, 2022  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Hi Frank,

If you add ".Trim()" to the "finalOutput" references, it will remove all white space, including line breaks. It would look like this:

Code

// Paste the output
BFS.Clipboard.PasteText(finalOutput.Trim());

// Put the output on the clipboard
return finalOutput.Trim();


Hope that helps!
Mar 31, 2022  • #2
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)