Following
Phanx, if you want to use that macro in my example, you have to use
\n instead of newlines, like so:
Lua Code:
button:SetAttribute("macrotext", "/cleartarget\n/targettexact Kor'kron War Shaman\n/run SetRaidTarget('target', 8)\n/targetlasttarget")