Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

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(-)