[gedit-list] Problems with Paragraph Wrap unofficial plugin



I am often writing files where I want to keep lines to a specific
maximum length. To help this I have tried the unofficial gedit plugin
Paragraph Wrap and am getting two different problems, depending upon
which operating system I am using gedit.

LINUX

I am using gedit 2.30.2 and Python 2.6.5. When I am using the plugin,
I have to first select the text to be wrapped, then press the key
sequence Control + J. In reviewing the code of the plugin it seems
that it will *only re-wrap text which is selected, and not the current
paragraph, as you might first believe. The re-wrap works OK but I have
modified the source code (wrapper.py) to set the maximum line length
to 80 characters (not 72 as in the original source code) but the text
appears to be wrapped at 72 characters. I have looked over the source
code and at the Python function being used and can't understand why it
might be wrapping at less than the specified number of characters.

WINDOWS

I am using gedit 2.30.1, as linked to the official gedit home page,
which includes GTK+2 and Python (2.6, I believe) libraries. Again I
select the text to be wrapped and press the key sequence, but this
time the selected text disappears.

Is anyone else using this plugin? If so, does it work for you? What
operating system are you using, and what versions of gedit and Python
do you have installed?

If I can get this working as I want, my next aim is to change the code
so that it wraps on the "long line" length set by the user, if they
have this turned on.


Regards,

Russell Dickenson


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