WordPress.org

Plugin Directory

beautifier

Opened 3 years ago

Closed 3 years ago

#1257 closed enhancement (wontfix)

Feature Request: Add option to use Spaces or Tabs for indentation. [Patch Included]

Reported by: sterlo Owned by: tillkruess
Priority: normal Severity: normal
Plugin: beautifier Keywords:
Cc:

Description

As per:
http://wordpress.org/support/topic/plugin-wp-beautifier-feature-request

Please see the attached patch for the code.

It adds a radio button on the options screen that allows you to use Tabs or Spaces to indent the XHTML output.

Maybe a more advanced version later will allow you to actually type in specific characters to use or specific amounts of characters to use.

Additional stuff was just fixing some indentation (re-factoring).

I'll let the version control bump be up to you.

Attachments (1)

wp-beautifier-patch.diff (11.6 KB) - added by sterlo 3 years ago.
(Updated) Basic Diff Patch: diff -U 20 wp-beautifier-old wp-beautifier-new > wp-beautifier-patch.diff

Download all attachments as: .zip

Change History (2)

sterlo3 years ago

(Updated) Basic Diff Patch: diff -U 20 wp-beautifier-old wp-beautifier-new > wp-beautifier-patch.diff

comment:1 tillkruess3 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

A filter which allows changing the indentation character has already been included in latest development version.

http://plugins.trac.wordpress.org/browser/wp-beautifier/trunk/beautifier.php#L179

Note: See TracTickets for help on using tickets.