Processing Ajax...

Close Dialog


Close Dialog

Close Dialog

Need to fix one macro

Frank99's profile on
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
Hi Frank,

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


// Paste the output

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

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