Commit graph

1708 commits

Author SHA1 Message Date
Jim Derry 1d2a183f32 Set the indent character in a more appropriate spot.
The previous location was fine when saving the output stream, but it led to
unset character when using node interrogation, which _also_ uses the pretty
printers to get text. This is a more appropriate location to set the character.

This is the first instance of our cool Swift wrapper API tester catching an
issue for us. Nice!

Proof that the automated API
2021-08-19 18:12:29 -04:00
Jim Derry 0fe913eb76 Primarily documentation of the pprint.c/h, with some file organization and
function cleanup.
2021-08-19 16:14:46 -04:00
Jim Derry bde08388dc Delete stray control character from parser.c. No idea how that was introduced. 2021-08-18 06:30:37 -04:00
Jim Derry e32922175a Version bump to 5.9.14. 2021-08-17 15:03:24 -04:00
Jim Derry d057bcb44a
Merge pull request #990 from htacg/issue_611
Issue 611
2021-08-17 15:02:43 -04:00
Jim Derry 8a45f44f36 Tests cases for previous. 2021-08-17 14:53:28 -04:00
Jim Derry 0d72ca395f Fixes #611. 2021-08-17 14:51:40 -04:00
Jim Derry 86601b1153 Version bumped to 5.9.13 to reflect new behavior. 2021-08-17 12:37:24 -04:00
Jim Derry 1ca8e210c8 Fixes #525.
Naked groups of LI in HTML5 mode will now have an inferred UL applied to
them consistent with HTML4 and earlier modes.

Test case added.

Note that three regressions were updated in favor of this corrected behavior.
2021-08-17 12:34:43 -04:00
Jim Derry a46949f46a Bump to version 5.9.12. 2021-08-17 11:54:56 -04:00
Jim Derry 172d5a888c
Merge pull request #989 from htacg/issue_464
Fixes #464. Test cases added.
2021-08-17 11:52:07 -04:00
Jim Derry 6001011c80 Fixes #464. Test cases added. 2021-08-17 11:38:42 -04:00
Jim Derry 2e6ffff91e Bump to 5.9.11 for binary changes. 2021-08-17 07:33:39 -04:00
Jim Derry 845e55e5d4
Merge pull request #988 from htacg/xml_recurse
The XML Parser and XML Pretty Printer are now non-recursive.
2021-08-17 07:32:07 -04:00
Jim Derry 132fb352b1 The XML Parser and XML Pretty Printer are now non-recursive. 2021-08-17 07:24:53 -04:00
Jim Derry 71ff9a7a8a Documentation update. No version bump. 2021-08-15 11:17:50 -04:00
Jim Derry 2e259583a8 Bump version due to binary difference. 2021-08-15 07:31:56 -04:00
Jim Derry 28068b1273 Fixes #816.
Ensure thread safety by ensuring that tag_defs[] is thread local.
This has some overhead but is negligible on modern systems.
2021-08-15 07:29:40 -04:00
Jim Derry c8fbde5903
Merge pull request #986 from htacg/recurse_squash
Recurse squash
2021-08-14 20:52:23 -04:00
Jim Derry 2e7ec117fd Bump version. 2021-08-14 20:43:36 -04:00
Jim Derry 91f29ea7b8 HTML Tidy now parses HTML non-recursively.
Instead of recursive calls for each nested level of HTML, the next level is
pushed to a stack on the heap, and returned to the main loop. This prevents
stack overflow at _n_ depth (where _n_ is operating-system dependent). It's
probably still possible to use all of the heap memory, but Tidy's allocators
already fail gracefully in this circumstance.

Please report any regressions of your own HTML!

NOTE: the XML parser is not affected, and is probably still highly recursive.
2021-08-14 20:42:43 -04:00
Jim Derry b6f7e43842
Merge pull request #984 from htacg/issue_946
Fixes #946
2021-07-31 08:32:12 -04:00
Jim Derry efa61528aa Fixes #946 by refactoring the recursion into a loop with a heap-based stack. 2021-07-31 08:26:16 -04:00
Jim Derry c055b71c56 Deleted LICENSE again. Enough is enough. 2021-07-30 19:09:29 -04:00
Jim Derry c22c37b5a4 Add license to .github 2021-07-30 19:05:45 -04:00
Jim Derry e11dba9c92 Removed docs. 2021-07-30 19:03:40 -04:00
Jim Derry 995c20e9e4 Doc folder. 2021-07-30 18:57:02 -04:00
Jim Derry 1213047d42 More static analyser fixes; version bump to 5.9.7. 2021-07-30 18:45:18 -04:00
Jim Derry 5f98ccd606 Static analyzer fixes. 2021-07-30 18:32:34 -04:00
Jim Derry bd751a8bcd Fix allocation error; fix some static analyzer suggestions. 2021-07-30 18:23:47 -04:00
Jim Derry a3a5ea6740
Merge pull request #983 from htacg/remove_recursion
Remove recursion
2021-07-30 17:23:17 -04:00
Jim Derry b10a16ef1a Bump to 5.9.6 due to binary differences. 2021-07-30 17:16:43 -04:00
Jim Derry a34b0f07b5 Remove more recursion. 2021-07-30 17:15:58 -04:00
Jim Derry c21deae8c0
Bump to 5.9.5 due to API changes.
Will not build new pre-release as there are no public changing faces in the executables.
2021-07-30 16:50:09 -04:00
Jim Derry 7cddcb59fd
Merge pull request #982 from htacg/issue_719
Fixes #719. Pass the string representation of the parameter name, and…
2021-07-30 16:48:18 -04:00
Jim Derry 68a3d81d02 Fixes #719. Pass the string representation of the parameter name, and post process before output. Adds strrep() service to support. 2021-07-30 16:40:48 -04:00
Jim Derry 80550d6779 Updated localization information and files. No version bump. 2021-07-30 10:43:39 -04:00
Jim Derry b5e2442165
Bump version due to internal changes. 2021-07-29 06:23:28 -04:00
Jim Derry db847e6e1c
Merge pull request #981 from htacg/iterate
Documentation and Recursion
2021-07-29 06:22:48 -04:00
Jim Derry e56716f154 Improve internal documentation.
Start general conversion to eliminate and/or reduce recursion.
2021-07-28 19:46:54 -04:00
Jim Derry ab6b76dae9
Merge pull request #980 from SpaceIm/fix/cmake-pdb
CMake: robust installation of pdb files
2021-07-28 18:20:38 -04:00
Jim Derry 514ab0187c
Update build_and_test.yml
Add CMakeLists.txt as a trigger for automated testing, so that PR's making changes to it will be tested. No version bump.
2021-07-28 18:13:18 -04:00
SpaceIm 1da5d8ddde robust installation of pdb files 2021-07-27 14:56:48 +02:00
Jim Derry c42ec040c9
Update version.txt
User-facing URL changes merit version bump.
2021-07-21 17:30:24 -04:00
Jim Derry da8e10bedc
Merge pull request #978 from htacg/rc
HTTPS Migration
2021-07-21 17:29:39 -04:00
Jim Derry 0d173d61d7 HTTPS Migration
- Updated links with working https versions from http.
- Removed rotten links.
- Updated links that have since resolved to new addresses.
- Generated all new po's and pot from existing headers.
- Updated the regression tests to account for the new https:// URLS, and the
  changed reference to specification.
2021-07-21 17:21:27 -04:00
Jim Derry d79fe9f1eb
Merge pull request #976 from htacg/spelling_fixes
Spelling fixes, thanks to @jschleus.
2021-07-21 15:59:15 -04:00
Jim Derry 1bb72d6041 Spelling fixes, thanks to @jschleus. 2021-07-21 15:50:53 -04:00
Jim Derry 63c243f223
Update README.md 2021-07-21 15:12:33 -04:00
Jim Derry 168d09a0a8 Update proper ref to external repository. 2021-07-21 14:09:46 -04:00