This is the macro for bold:
Code: Select all
#Nisus Macro Block
#source front selection
#destination front selection
#End Nisus Macro Block
binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
read STDIN,$text,10000;
$text = "**$text**";
print $text;
Code: Select all
#Nisus Macro Block
#source front selection
#destination front selection
#End Nisus Macro Block
binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
read STDIN,$text,10000;
$text = "*$text*";
print $text;
When I select words, the words are selected without the space in front or behind them. I apply the macro, and undo the change, the space in front of my original selection is also selected, which explains the behavior. Why does it select the space in front of the selection when it was explicitly not selected before?
When I apply the italic macro, it doesn't have any extra space. How is this different and why?
macosxguru