Jim Derry
67f7b77e1f
Added a flag to CMakeLists.txt simply to point out that one can build without
...
support for ISO2022 natively. Of course, we've been doing this by default for
years with no ill effect, and all modern operating systems seem to support this
natively. It's probably best to keep this in here, unlike the other deletions.
2017-10-03 13:04:37 -04:00
Jim Derry
a1e4dcc066
Removed option for SUPPORT_ACCESSIBILITY_CHECKS, regen'd strings.
2017-10-03 12:45:34 -04:00
Jim Derry
dfa2501928
Removed option for SUPPORT_ASIAN_ENCODINGS, and regen'd strings.
2017-10-03 12:37:23 -04:00
Jim Derry
2758939406
Removed SUPPORT_UTF16_ENCODINGS, and regen'd strings.
2017-10-03 12:26:38 -04:00
Jim Derry
8f47c024ac
code documentation; no bump
2017-10-03 08:26:51 -04:00
Jim Derry
77632e2fb8
Merge branch 'unix_features' into next
2017-10-02 13:39:17 -04:00
Jim Derry
0e3cb7c78e
Merge branch 'issue_598' into next
2017-10-02 13:34:59 -04:00
Jim Derry
a4ea6999e8
Merge branch 'issue_616' into next
2017-10-02 13:31:12 -04:00
Jim Derry
47a32891c8
Merge branch 'issue_521' into next
2017-10-02 13:27:16 -04:00
Jim Derry
6619062aaa
Merge branch 'issue_575' into next
2017-10-02 13:19:40 -04:00
Jim Derry
024f034fa3
Merge branch 'issues_588_591' into next
2017-10-02 13:14:49 -04:00
Jim Derry
9c6a1e47ae
Added -export-config and -export-default-config so that users can generate a
...
starting config style with every option, suitable for rc files.
2017-10-01 19:49:44 -04:00
Jim Derry
393fdfda3f
Updated the man page and the help output.
2017-10-01 19:19:47 -04:00
Jim Derry
1ad3241d3c
Updated documentation to reflect the rc files Tidy will use on Unix systems,
...
and added a new -help-env service that intelligently displays information about
$HTML_TIDY, rc files, and application order.
2017-10-01 18:58:17 -04:00
Jim Derry
a4e0409323
Address #584
...
Modify the build system to assume config files by default. Modify tidyplatform
to accomodate these changes. Reformat tidyplatform for friendliness to new
developers.
2017-10-01 10:37:49 -04:00
Jim Derry
2852ad4c63
Fix #588 and #591
...
- Apply @geoffmcl's patches and tested.
2017-09-29 15:42:03 -04:00
Jim Derry
397fd1ace0
Address #598
...
- Add the download attribute to the anchor tag.
2017-09-29 15:30:43 -04:00
Jim Derry
d3129694c7
Address #616
...
- Fix the declaration and parser for the bdi tag.
2017-09-29 15:15:33 -04:00
Jim Derry
6a2d80ef9a
Address #521
...
- Tidy will now emit a TidyInfo message when end tags are missing for li tags,
unless omit-optional-tags is yes.
2017-09-29 14:49:02 -04:00
Jim Derry
b0f584fa24
Address #575 by adding a new footnote in TY_(ErrorSummary) suggesting that if
...
this behavior is not wanted, then which option to use to prevent it.
2017-09-29 11:25:17 -04:00
Jim Derry
f2b87ccd7b
Address #542
...
- change message to indicated missing quote is only suspected.
- change severity to TidyWarning.
- Update POT with new string.
2017-09-29 10:42:21 -04:00
Jim Derry
be803cef0e
Merge branch 'next' into issue_476
2017-09-28 13:56:41 -04:00
Jim Derry
0a8154b97e
Merge branch 'next' into issue_476
2017-09-28 13:25:45 -04:00
Geoff R. McLane
5c224e4a70
Revert 6 files to 0664
2017-09-28 18:43:52 +02:00
Jim Derry
df3bde38ec
Introduced auto
behavior to the fix-bad-comments
option so that yes
or
...
`no` could be applied automatically per the document type. This is the new
default.
2017-09-25 15:26:03 -04:00
Jim Derry
c74e47adbb
Fixed the single hyphen issue. Tests passing. Implementation Ready.
2017-09-25 10:50:04 -04:00
Jim Derry
483e0fec9e
Address issue #476 , which started out as a simple message update.
...
- Change default value of `--fix-bad-comments` to `no`.
- Ensure that when _not_ fixing, nothing is actually fixed.
- Ensure that when fixing, initial adjacent hyphens actually are fixed.
- Issue tidyinfo for all fixes made.
- Issue tidywarning when when not making fixes for non-HTML5 doctypes.
2017-09-24 18:15:40 -04:00
Jim Derry
965b92a09c
Addresses #435 by updating documentation.
2017-09-24 13:42:16 -04:00
Jim Derry
20a1b7bb69
Updated documentation relating to new option.
2017-09-23 07:53:57 -04:00
Jim Derry
64a4302e6c
Migrated the attribute list parser to a general parser for future re-used by
...
other potential list-based options.
2017-09-23 07:30:17 -04:00
Jim Derry
70681131d6
New config option now drives the list; memory deallocated.
2017-09-23 07:20:31 -04:00
Jim Derry
23c28e5b82
Initial commit of #434 ; WIP
2017-09-22 22:14:59 -04:00
Jim Derry
64fb5640cb
MSVC snuck in some tab characters...
2017-09-22 19:27:47 -04:00
Jim Derry
c579d5b62c
Address #412
...
Add a TidyInfo message each time an unquoted attribute is found. However,
refer to #412 for discussion before merging this.
2017-09-22 19:01:31 -04:00
Jim Derry
cf6f47ca1c
Squelch some MSVC 2010 warnings, and reset indentation in tidy.c. No version bump.
2017-09-22 17:27:49 -04:00
Rafael Fontenelle
b5db02aeb9
Update Brazilian Portuguese translation
2017-09-21 00:43:48 -03:00
Jim Derry
9614019e8c
Added Portuguese (Brazil) localization to Tidy.
...
Rebased the new language due to organization of strings in newest-next.
Bumped version for external changes.
2017-09-20 17:57:42 -04:00
Jim Derry
c88f9c318c
Merge branch 'include-portuguese-brazil' of https://github.com/rffontenelle/tidy-html5 into rffontenelle-include-portuguese-brazil
2017-09-20 17:49:22 -04:00
Jim Derry
2a4dc1af52
Merge branch 'dialogue_cleanup' into next
...
Version bump for internal API change.
Conflicts:
version.txt
2017-09-20 17:47:27 -04:00
Geoff McLane
79aa8b7460
Merge pull request #599 from htacg/memory-test
...
Issue #597 - Memory tests/diagnostics
2017-09-20 19:11:34 +02:00
Geoff McLane
cd9bb76caf
Merge pull request #595 from ablackton/fix/XmlElementNameParsing
...
Issue #594 - Parse XML element names beginning with Valid NameChar
2017-09-20 17:02:14 +02:00
Jim Derry
f26d70c394
Added Doxygen documentation to the header. Some of these could be expanded a
...
bit, but they look nice in Doxygen.
2017-09-19 15:07:52 -04:00
Rafael Fontenelle
c1a4f018df
Add Brazilian Portuguese translation
2017-09-19 15:38:49 -03:00
Jim Derry
55ceb55fad
Updated PO's and languages with minor changes from English.
2017-09-19 14:03:45 -04:00
Jim Derry
51e2e0f3bd
Following the example of the recent changes in the "reports" aspect of Tidy's
...
output, classify and organize all of the dialogue type of messages. This paves
the way towards formalizing (and expanding!) the footnotes system with much
greater explanatory text, as well as providing much better fine-grained control
over which types of output that Tidy will produce.
Moved STRING_DOCTYPE_GIVEN, STRING_CONTENT_LOOKS, and STRING_NO_SYSID to the
Report paradigm from the Dialogue paradigm, as these are items that are
traditionally TidyInfo and included in the Report table, rather than any type
of dialogue.
At this point, we are exactly passing all tests.
2017-09-19 13:52:27 -04:00
Geoff McLane
55d287bc9d
Issue #597 - Free the 'node' not stacked, and add 'message'
2017-09-18 19:47:52 +02:00
Geoff McLane
eb81a53165
Issue #597 - Free the 'message' structure, in messageobj.c
2017-09-18 19:46:46 +02:00
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
Andrew Blackton
5a50afe42c
Parse XML element names beginning with Valid NameChar
2017-09-11 14:00:11 -05: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
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
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
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
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
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
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
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
Geoff McLane
f7658b2c89
Issue #582 - Remove extra new line in 'classic' mode
2017-08-04 14:23:14 +02:00
Geoff McLane
09f1806834
Issue #572 - discard an all space text node.
...
An earlier patch now passes back an all space text node. Previously this
would have been skipped. So add code in ParseList to detect, and discard
such a node.
Change committed:
modified: src/parser.c
2017-07-08 19:45:42 +02:00
Geoff McLane
f26a068809
Issue #572 - More conditions for #396
2017-07-02 21:10:20 +02:00
Geoff McLane
50859e8258
Issue #567 - add option, messages, and fix node iteration.
...
Add option TidyStyleTags, --fix-style-tags, Bool, to turn off
this action.
Add warning messages MOVED_STYLE_TO_HEAD, and FOUND_STYLE_IN_BODY.
Fully iterate ALL nodes in the body, in search of style tags...
Changes to be committed:
modified: include/tidyenum.h
modified: src/clean.c
modified: src/config.c
modified: src/language_en.h
modified: src/message.c
2017-06-28 20:41:46 +02:00
Geoff McLane
d4ca02adfb
Issue #567 - Branch 'issue-567-2' to move all 'style' to 'head'
2017-06-18 20:06:24 +02:00
Geoff McLane
b32e14a8ea
Issue #456 - add new option show-meta-change
2017-06-09 03:11:39 +02:00
Geoff McLane
97292646f6
Issue #456 - Add 'Info:' message when charset replaced
2017-06-05 17:16:53 +02:00
Geoff McLane
a4770daa2b
Issue #456 - Add 'Info:' message, when meta added.
...
It also fixes the addition of the constant 'http-equiv="Content-Type"
attribute.
2017-06-04 20:44:02 +02:00
Geoff McLane
13b34c9d8b
Issue #456 - BAH! Fix a stupid logic reversal
2017-06-04 15:41:16 +02:00
Geoff McLane
e28ec72301
Merge branch 'next' into issue-456
...
Continue WIP #456
2017-06-04 14:59:18 +02:00
Geoff McLane
eb127a5c5b
Issue #550 - K&R/MSVC10 fix - message.c
2017-05-30 18:14:58 +02:00
Geoff McLane
722a841ce2
Merge branch 'next' into issue-456
...
This was to pick up the fix for #395 , PR #564 , and bumps the version to
5.5.30...
2017-05-29 14:36:14 +02:00
Geoff McLane
4136d85a9c
Issue #395 , #564 - Oops, restore orig char if not closing
2017-05-29 14:26:55 +02:00
Geoff McLane
40e1d64963
Issue #456 - A desparate commit to get this WIP right, but...
2017-05-27 20:13:51 +02:00
Geoff McLane
8a932f96eb
Issue #456 - Oops, incorrect merge conflict
2017-05-27 18:52:49 +02:00
Geoff McLane
049bc6c288
mERGE branch 'next' into issue-456
2017-05-27 18:35:01 +02:00