And, certainly, replacing the %20 stuff is easy in python, should you
be happy with Tidy plus a post processing step.  There are probably
even suitable functions in the http or urllib libraries that will
catch more than the %20s.  You could even have the python tool run
Tidy for you, so that it looks like one step.

On Tue, Feb 22, 2011 at 10:20 AM, Bill Freeman <[email protected]> wrote:
> You *could* use Tidy, then post process with a sed script to convert
> the '%20's to spaces.
>
> There may be comparable Windows tool, but if you want sed, you can
> install Cygwin.
>
> But if you install Cygwin, you could edit with vim.
>
> Since you're editing templates, you probably have python installed.
> If there isn't already a python based template reformatter, that
> sounds like an obvious project.  It would still be outside your
> editor, however.  I really want formatting aid inside my editor
> (spoiled emacs user).  Perhaps an extension to IDLE?
>
> On Tue, Feb 22, 2011 at 9:55 AM, mongoose <[email protected]> wrote:
>> hi all,
>>
>> I'm using notepad++ a lot and really missing a code formatter (vim
>> would be = to format).
>> Anyone know of anyway to format my html nicely? I've tried HTML Tidy
>> but it keeps adding a 20% where I have a space for example
>> "{{%20MEDIA_URL%20}}css/styles.css".
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to