Geoff McLane
d5ba3d8939
Issue #597 - Switch to 'stderr' in sprtf.c
2017-09-17 16:30:37 +02:00
Geoff McLane
a14cffc598
Issue #597 - Avoid reporting root node in lexer.c
2017-09-17 16:29:47 +02:00
Geoff McLane
5d017fe532
Issue #597 - Minor enhancement of memory debug in alloc.c
2017-09-17 16:28:39 +02:00
Geoff McLane
3e27882109
Issue #597 - Add WIN CRT memory debug in tidy.c
2017-09-17 16:27:17 +02:00
Geoff McLane
98eb7b20ba
Issue #597 - Add some memory diagnostics options in CMakeLists.txt
2017-09-17 16:25:05 +02:00
Andrew Blackton
5a50afe42c
Parse XML element names beginning with Valid NameChar
2017-09-11 14:00:11 -05:00
Jim Derry
a79458a0ef
Bump version for internal API changes.
2017-09-08 19:41:25 -04:00
Jim Derry
4509695445
Updated documentation in file.
...
Simplified the update counting.
2017-09-06 21:25:19 -04:00
Jim Derry
6bce1b377f
Updated the POs and POT to reflect the re-sorted strings.
...
Updated language_fr.h reflect the re-sorted strings.
2017-09-06 20:55:36 -04:00
Jim Derry
6b3dfda263
Updated the MESSAGES.md readme for the updated message system.
...
At this point:
- MSVC on Windows 10 compiles without warnings or errors.
- GCC on Ubuntu 16.04 compiles without warnings or errors.
- Test cases in `testbase` are clean on all of:
- macOS
- Windows 10
- Ubunutu
2017-09-06 20:50:31 -04:00
Jim Derry
279dd55280
Regenerated PO's and POT.
2017-09-04 17:46:07 -04:00
Jim Derry
80cb74fece
Removed comments from and sorted error messages, as they are documented elsewhere in code now, here, too.
2017-09-04 17:43:06 -04:00
Jim Derry
a743c86e3f
Removed comments from and sorted error messages, as they are documented elsewhere in code now.
2017-09-04 17:41:19 -04:00
Jim Derry
d8220c061f
Updated the remaining items, including all of the accessibility module items.
...
Note that there are several regressions in the accessibility test suit that
are not related to output messages. These are a result of previous work, and
these results should be updated in the test suite when this item is merged.
2017-09-04 17:35:57 -04:00
Jim Derry
832b4772ad
A bit of organizational cleanup.
2017-09-04 16:49:49 -04:00
Jim Derry
bc4388e317
Migrated surrogate errors; removed break after return.
2017-09-04 16:38:07 -04:00
Jim Derry
5b6edb5813
EncodingWarning and MissingAttr migrated.
2017-09-04 16:12:01 -04:00
Jim Derry
f49c419908
Implement formatter for encoding reports.
2017-09-04 15:50:45 -04:00
Jim Derry
8cb4198724
Entity errors migrated.
2017-09-04 15:28:08 -04:00
Jim Derry
18754c701d
Transitioned formatCustomTagDetected to the general formatter.
2017-09-04 11:44:54 -04:00
Jim Derry
e3893eb8b3
Also merged reportBadArgument into standard formatter as above.
2017-09-04 11:40:34 -04:00
Jim Derry
be22ad3d03
Move file errors into the standard formatter. Local context is preserved with
...
braces to not pollute stack for other cases.
2017-09-04 11:35:49 -04:00
Jim Derry
283f8974c3
Migrated reports using formatFileError and formatStandard to flexible messaging system. Migrated old reportNotice() to report().
2017-09-04 11:24:48 -04:00
Jim Derry
1d2c019162
Added a new string to disambiguate between config files and other file types.
2017-09-04 11:23:37 -04:00
Jim Derry
66e4d1f8e6
Migrated reports using formatter formatCustomTagDetected.
2017-09-02 18:04:51 -04:00
Jim Derry
0c8f684a4b
Migrated messages using formatter formatBadArgument to new message system. All tests passing.
2017-09-02 18:00:46 -04:00
Jim Derry
46aa9605ee
All reports that can use formatAttributeReport are now using it. Moved the
...
badAccess flag to the point of detection.
2017-09-02 17:29:56 -04:00
Jim Derry
00178113c8
A *complete* inventory of every message has been completed, and the dispatchTable
...
reflects such. Some fleshed in report formatters are included with cases for
several of Tidy's reports, but nothing is yet enabled. All reporting is status
quo, and this is just a bunch of dead code at this point.
2017-09-02 16:47:14 -04:00
Jim Derry
83263466f2
Cleanup ReportNotice() a bit by introducing an HTMLVersion() function.
2017-09-02 12:54:02 -04:00
Jim Derry
951ed381a3
Restore message logic. No bump.
2017-08-31 13:45:01 -04:00
Jim Derry
5df01d314e
Bumped to 5.5.37 because of #456 merge.
2017-08-31 13:18:11 -04:00
Jim Derry
e5a05ae5a8
Address merge conflicts.
2017-08-31 13:15:28 -04:00
Jim Derry
2c82cfa23b
Inventoried current error strings, and removed/commented out several:
...
- BAD_COMMENT_CHARS
- BAD_XML_COMMENT
- DTYPE_NOT_UPPER_CASE
- ENCODING_IO_CONFLICT
- INCONSISTENT_NAMESPACE
- INCONSISTENT_VERSION
- INDICATE_CHANGES_IN_LANGUAGE
- UNESCAPED_ELEMENT
- XML_ATTRIBUTE_VALUE
Re-sorted new tidy options.
All tests passing.
Bump version to reflect strings that are externally accessible to API.
2017-08-31 12:57:58 -04:00
Jim Derry
38814f9e3b
Sort message labels for simpler inventorying.
2017-08-31 10:57:54 -04:00
Jim Derry
e1cbafd647
Handle message outlook properly in messageOut().
2017-08-31 10:44:16 -04:00
Jim Derry
5cd2603a68
Version bumped to 5.5.35 to reflect internal-only API change.
2017-08-30 20:04:03 -04:00
Jim Derry
e5eb09198d
Begin migration towards "one output function to rule them all." Consolidated
...
the basic reporting functions that share the same signature. This also resulted
in eliminating a string, and adding a new string to disambiguate between
errors and warnings.
2017-08-30 20:01:44 -04:00
Jim Derry
1562c42c2e
Merge branch 'next' into issue-456
...
Manually fixed merge commits.
2017-08-28 15:17:10 -04:00
Jim Derry
7badd93417
Geenrated en_gb language from the PR'd PO. Version bump for recent PR's.
2017-08-28 14:29:02 -04:00
Jim Derry
1f3cf24e82
Merge pull request #590 from mthorpe7/fix_upstream_crash
...
Fix NULL pointer issue with Word2000 empty attributes.
2017-08-28 14:25:35 -04:00
Jim Derry
2780f01e9a
Merge pull request #589 from niczero/f_en-gb
...
Fixed some en_gb spellings
2017-08-28 14:24:49 -04:00
Jim Derry
6533181edf
Merge pull request #583 from htacg/issue-582
...
Issue #582 - Remove extra new line in 'classic' mode
2017-08-28 14:24:26 -04:00
Michael Thorpe
52465c6142
Fix NULL pointer issue with Word2000 empty attributes.
...
This appears to be an issue with Word2000 handling of empty attributes.
A reproduction case can be seen here:
```
$ cat test.html
<html xmlns:o="urn:schemas-microsoft-com:office:office">
<body>
<table>
<img class="" />
</table>
</body>
</html>
$ ./tidy --tidy-mark no --word-2000 yes test.html
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 3 column 1 - Warning: <img> isn't allowed in <table> elements
line 2 column 1 - Info: <table> previously mentioned
line 1 column 57 - Warning: inserting missing 'title' element
line 3 column 1 - Warning: <img> lacks "alt" attribute
line 3 column 1 - Warning: <img> lacks "src" attribute
line 2 column 1 - Warning: trimming empty <table>
line 1 column 1 - Warning: <html> proprietary attribute "xmlns:o"
[2] 52405 segmentation fault ./tidy --tidy-mark no --word-2000 yes test.html
```
This was called from 6f2fb6e0e7/src/clean.c (L1710)
.
(It is technically undefined behaviour to call strncmp with `NULL` pointers however).
2017-08-28 15:30:28 +01:00
Jim Derry
e8e83dbe9f
Regenerated POs and POT for new strings. No version bump required.
2017-08-28 10:06:41 -04:00
Jim Derry
f28e809a36
Bumped to version 5.5.33.
2017-08-28 10:03:38 -04:00
Jim Derry
561d43c7e5
Merge pull request #579 from htacg/issue-567-2
...
Issue 567 2 - style tag to head
2017-08-28 10:02:25 -04:00
Jim Derry
d4a11b553e
Merge pull request #577 from htacg/issue-572
...
Issue 572
2017-08-28 10:01:48 -04:00
Jim Derry
a26c4e0a18
Version bump for API change.
2017-08-26 12:50:33 -04:00
Jim Derry
f4c64966f0
Added TidyConfigCallback and deprecated TidyOptCallback for consistency with
...
the remainder of the callbacks. TidyConfigCallback is now given a reference
to the instance of the TidyDoc that caused the callback to occur.
+ TidyConfigCallback
2017-08-26 12:47:18 -04:00
Nic Sandfield
090e3fca73
Fixed some en_gb spellings
2017-08-24 11:28:17 +01:00