geoffmcl / NppTidy2

HTML-Tidy plugin for Notepad++. Uses tidy-html5 - https://github.com/htacg/tidy-html5
GNU General Public License v2.0
29 stars 8 forks source link

Simplify the default tidy1.cfg written, if none detected... #6

Closed geoffmcl closed 6 years ago

geoffmcl commented 6 years ago

Recently came across an Issue 10 filed some time ago, and turns out this is due to the quote-marks: yes given in the default tidy1.cfg config file...

See the current API docs quote-marks, which specifically mentions the conversion of apostrophe character to ', but the reasoning is probably not very valid in modern browsers...

This is part of a rather complicated config, built into the source -

indent: auto
indent-spaces: 2
wrap: 132
markup: yes
output-xml: yes
input-xml: no
numeric-entities: yes
quote-marks: yes
quote-nbsp: yes
quote-ampersand: no
break-before-br: no
uppercase-tags: no
uppercase-attributes: no
new-inline-tags: cfif, cfelse, math, mroot, 
  mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover,
  munder, mover, mmultiscripts, msup, msub, mtext,
  mprescripts, mtable, mtr, mtd, mth
new-blocklevel-tags: cfoutput, cfquery
new-empty-tags: cfelse

Intend to reduce this to a much simpler config, and under consideration is just -

indent: yes
wrap: 132
clean: yes

Will test, and give this a little more thought... feedback welcome...

geoffmcl commented 6 years ago

Above commits should close this...