Commit graph

1271 commits

Author SHA1 Message Date
Jim Derry 29766afcfd Initial take on issue 365. This is based off of the simplification of the
parser and picklist system. Console application needs to be updated to fix
the description, as it shows autobool, and for some reason on the current
system I'm not getting assertion failures.
2017-05-11 18:12:56 -04:00
Jim Derry 66bed8b9a0 Bumped to 5.5.21 for #391 fix. 2017-05-11 15:25:46 -04:00
Jim Derry 7112fba553 Merge pull request #549 from htacg/issue_391
Address #391. Tested on macOS and Win10.
2017-05-11 15:24:44 -04:00
Jim Derry 1ba4bcb753 Update the OPTIONS.md readme file. 2017-05-11 14:54:53 -04:00
Jim Derry aeb9a24fab Refactor Picklists and Option Parsers
This PR refactors how picklists and option parsers are implemented in LibTidy,
making is vastly easier to implement new picklists in the future, as well as
modify some of the existing picklists such that they have more logical names.

Picklist arrays are now arrays of structures that include the possible strings
capable of setting a particular option value, and a new parser has been written
to work with these structures.

In addition, several of the existing parsers were removed, as they are now
redundant, and a couple of the remaining parsers were refactored to take
advantage of the new parser.

In effect, this means that:

- New parsers don't have to be written in the majority of cases where new
  options are added that exceed yes/no/auto.
- Some of the existing options can have more meaningful names than yes/no/auto,
  in a backward compatible way. For example, vertical-spacing "auto" currently
  in no way reflects "auto" when used.
2017-05-11 14:40:21 -04:00
Geoff McLane f7e7554c95 Close the file before the _WIN32 switch 2017-05-09 19:24:20 +02:00
Jim Derry 590a030756 Bumped to 5.5.20 for latest fix. 2017-05-08 17:37:55 -04:00
Jim Derry acaab679c5 Merge pull request #547 from htacg/issue_352
Attempt to address issue #352.
2017-05-08 17:36:52 -04:00
Geoff McLane 77420b94d0 Fix for 'isalnum' in Windows
According to the MSN documentation 'isalnum(c)' is only valid when c equals
EOF, or is in the range 0 to 255 inclusive. It states the behavior is
undefined outside this range, and in Debug mode triggers an assert dialog.
2017-05-08 18:42:33 +02:00
Jim Derry ce105dcf09 Address #391. Tested on macOS and Win10.
- Add a check upon opening a file for validity of the file.
- Add a new message to indicate that the path is not a file.
2017-05-07 17:04:53 -04:00
Jim Derry 6f2fb6e0e7 Bumped version to 5.5.19 for merge. 2017-05-07 15:03:04 -04:00
Jim Derry 8244052cd1 Merge branch 'deprecations' into next 2017-05-07 15:01:49 -04:00
Jim Derry fe451eaa7d Address #452. 2017-05-06 19:18:01 -04:00
Jim Derry fd77312175 Attempt to address issue #352. This patch correctly address the specific issues
in #352, but I'm worried that there's some over-reach here.

Currently only implemented as a warning, with no switch to turn it off, which
maintains current behavior other than the warning.

In general, we're treating any string as a complete URL, rather than breaking
URL's into component parts. Thus the `IsURLCodePoint()` check includes a few
other generic characters that strictly speaking aren't valid codepoints, but
are valid as escape characters and delimiters.

When addressing #338, I ran into a similar situation in not having a built-in
method to separate path components (although a simple generalized solution was
good enough in that case).

Thus without introducing a new structure and functions to deconstruct a URL
into scheme, authority, path, parameters, etc., some variation of this patch
will have to be used to address #352.
2017-05-06 18:54:42 -04:00
Jim Derry 09d1802298 Merge branch 'next' into deprecations 2017-05-06 14:34:48 -04:00
Geoff McLane fd2400d55b Merge pull request #543 from htacg/issue-436
Small documentation change to close #436
2017-05-06 15:44:45 +02:00
Geoff McLane 61d19c9a86 Merge #537 - Bump 5.5.18 for this gdoc fix 2017-05-06 15:37:56 +02:00
Geoff McLane d4978608e7 Merge pull request #537 from deathbaba/next
Correctly process 'bookmarks' in html exported from Google Doc.
2017-05-06 15:35:57 +02:00
Geoff McLane 1257a49823 Merge #541 - Bump to 5.5.17 - Closes #338 2017-05-06 15:26:09 +02:00
Geoff McLane 6839dfe601 Merge pull request #541 from htacg/issue_338
Issue #338 - fix 3 spurious access level 3 warnings...
2017-05-06 15:20:55 +02:00
Geoff McLane 594275712c Merge #532 - Bump to version 5.5.16 for new 'warn-proprietary-attributes' 2017-05-06 14:51:19 +02:00
Geoff McLane 6da0fff256 Merge pull request #532 from lhchavez/add-warn-prop-attrs
Add a flag to warn on proprietary attributes
2017-05-06 14:48:36 +02:00
Geoff McLane f9edab1c33 Merge #540 - Bump to 5.5.15 - closes #461 2017-05-06 14:21:13 +02:00
Geoff McLane 6e8fcaa0e5 Merge pull request #540 from htacg/issue-461
Issue #461 - alternative patch for this issue
2017-05-06 14:19:17 +02:00
Jim Derry 846b3cde55 Address #436 just to close it. 2017-05-04 13:45:06 -04:00
Geoff McLane d142527a8e Issue #338 - Deal with two other spurious access warnings 2017-05-04 17:36:39 +02:00
Jim Derry bbaad8356d Fix macOS issue with make package. 2017-05-04 09:53:42 -04:00
Jim Derry 7f8394e050 Merge pull request #534 from spk/cmake-pkg-config
Generate pkgconfig file for tidy
2017-05-04 09:53:14 -04:00
Jim Derry 14f5980117 macOS fixes. 2017-05-04 09:50:36 -04:00
Jim Derry 49b833f63b WIP 2017-05-03 18:16:03 -04:00
Jim Derry 8b2f92f625 Issue #338 occurs because the existing routines assume that any URI with an
extension is a file, and so links to TLD's ending with .pl, .au, etc., will
cause accessibility warnings. This fix attempts to distinguish between URI's
that are likely to be files versus links to domains.
2017-05-03 16:15:44 -04:00
Laurent Arnoud 3333ca7d69
Fix pkgconfig install path on package 2017-05-02 20:28:48 +02:00
Geoff McLane b03598652f Issue #461 - alternative patch for this issue 2017-05-02 19:39:16 +02:00
Alexander Zolotarev 87169d8953 Correctly process 'bookmarks' in html exported from Google Doc. 2017-04-19 14:47:27 -10:00
Laurent Arnoud 4066171ea2
Generate pkgconfig file for tidy 2017-04-18 00:43:43 +02:00
lhchavez a19d271f47 Add a flag to warn on proprietary attributes
This change adds the TidyWarnPropAttrs flag (default=on) that emits a
warning every proprietary attribute it finds.
2017-04-15 03:17:16 +00:00
Geoff McLane d8839485a4 Merge branch 'next' of github.com:htacg/tidy-html5 into next 2017-04-09 02:09:19 +02:00
Geoff McLane 72612b6ca3 Issue #524 - Bump to 5.5.14 for this message change 2017-04-09 02:08:58 +02:00
Geoff McLane 219a5c797b Issue #524 - Remove obsolete message 2017-04-09 02:08:03 +02:00
Jim Derry d1e0b22be7 Removed TidyDropFontTags. Note that POs and POT were _not_ updated. 2017-04-04 14:42:47 -04:00
Jim Derry 24afc6a6fa Fixed some casting issues that Ubuntu object to.
- Test on macOS, Win10, Ubuntu.
- No version bump for this change.
2017-04-04 14:33:56 -04:00
Jim Derry ce1e638a0f Added documentation to tidy.c for potential developers to look at and
understand.

- No version bump as no API was changed; just comments and reorganization.
- Built and tested in macOS, Win10, and Ubuntu.
2017-04-04 14:07:20 -04:00
Jim Derry 19c0655333 Bump to 5.5.13 for PR. 2017-03-31 13:36:15 -04:00
Jim Derry 2ad675556d Merge pull request #517 from htacg/issue-333
Issue 333
2017-03-31 13:35:41 -04:00
Geoff McLane dfad372af0 Merge branch 'issue-333' of github.com:htacg/tidy-html5 into issue-333 2017-03-26 16:57:47 +02:00
Geoff McLane 22dcea067e Issue #335, maybe #333, to output indent char, reduce if tab 2017-03-26 16:57:29 +02:00
Geoff McLane 5f88452487 Issue #333 - create exception for span/meta 2017-03-26 16:57:29 +02:00
Geoff McLane 17354ff927 Issue #515 #516 - Bump to 5.5.12 for this change 2017-03-24 15:26:09 +01:00
Geoff McLane fe3efcd035 Merge pull request #516 from htacg/cpack-test
Cpack test
2017-03-24 15:21:17 +01:00
Geoff McLane d3e8cf3901 Make LICENSE.txt equivalent to LICENSE.md 2017-03-24 15:19:07 +01:00