jonleighton / gedit-trailsave

Strip trailing whitespace on save
34 stars 11 forks source link

Markdown #14

Open drahnr opened 10 years ago

drahnr commented 10 years ago

In Markdown trailing whitespaces equal a enforced linebreak. Prevent stripping of "\s\s" if the document is a Markdown document.

cosinekitty commented 8 years ago

I saw this and it seems that it could be made much more generic and configurable. Is it possible to have a user-configurable setting that gives a list of excluded filename extensions? Then any file whose name ends with one of those extensions would not be modified by this plugin. The extension ".md" could be one of those extensions by default. Following the existing pattern of the PATH environment variable in Linux, the list could be a single string that contains colon-delimited extensions.