Re: [gedit-list] external tools



jbb ve free fr wrote:
I created the external tool calling this command:
xemacs --batch $GEDIT_CURRENT_DOCUMENT_PATH --eval "(progn (indent-region
(point-min) (point-max) nil) (save-buffer))";
cat $GEDIT_CURRENT_DOCUMENT_PATH.
My input is nothing.
My output is replace current document.
It is working well but my output got 2 extra - not needed - empty lines at the
begining and at the end of text.
Basically when I use some command with Replace current document as output I got
this 2 empty lines.

Is it a bug? No idea to fix that?

I just tested here, with a simple "cat $GEDIT_CURRENT_DOCUMENT_PATH" command, in "replace-document", and it doesn't add any white lines before or after the actual content. The strip-spaces tools doesn't add anything either. So, "here it works".

Are you sure your spaces are not inserted by xemacs ? If you run the tool as a shell script, does it work ok ?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]