Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


https://bugs.freedesktop.org/show_bug.cgi?id=62475

--- Comment #30 from mostthingsweb@gmail.com ---
Created attachment 98954
  --> https://bugs.freedesktop.org/attachment.cgi?id=98954&action=edit
asciitool.py - semi-automated ASCII removal

I have been working on a tool to semi-automate this process. I have attached an
initial version; it's useable, but incomplete. Unless someone has an alternate
suggestion, for the time being I will host it here:
https://bitbucket.org/MostThingsWeb/asciitool (especially while I don't have
commit access). The only preq is colorama:
https://pypi.python.org/pypi/colorama

Screenshots: http://imgur.com/a/BO0t2

Currently the tool detects ASCII art in addition to some (but not all)
pointless comments. It makes a best effort at preserving justification (leading
whitespace).

I say the tool is semi-automated because while it will make a suggestion
regarding what to do with each comment, it is ultimately up to you to decide
what to do. The tool lets you jump immediately into Vim to edit either its
suggestion or the original comment. It provides 5 lines of context before and
after, like git diff.

I'd be interested in getting some feedback regarding this, whether it's bug
reports, suggested features, or even just "why bother?"

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.