Commit graph

1119 commits

Author SHA1 Message Date
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 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
Geoff McLane f7658b2c89 Issue #582 - Remove extra new line in 'classic' mode 2017-08-04 14:23:14 +02:00
Geoff McLane fa18c51871 Add a 'next' branch check to Win64/build-me.bat
No code change, so no version bump for this...
2017-08-02 20:30:28 +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 e48b06b8c0 Bump version to 5.5.31 - closes #550 2017-05-30 18:17:13 +02:00
Geoff McLane 2c096dfa68 Issue #550 - K&R/MSVC10 fix - tidy.c 2017-05-30 18:15:25 +02:00
Geoff McLane eb127a5c5b Issue #550 - K&R/MSVC10 fix - message.c 2017-05-30 18:14:58 +02:00
Geoff McLane dbe8a6a767 Issue #395, #564 - Bump to 5.5.30 for this fix 2017-05-29 14:28:34 +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 34d37002c9 Bump to 5.5.29 - closes #395 2017-05-27 18:26:14 +02:00
Geoff McLane e23f29b145 Merge pull request #564 from htacg/issue-395
Issue 395 - self closing tags
2017-05-27 18:25:29 +02:00
Geoff McLane c61b5b7b0c Merge branch 'next' into issue-395 2017-05-27 18:20:28 +02:00
Geoff McLane 59a06293ab Bumped 5.5.28 for this merge - closes #392 2017-05-27 16:36:08 +02:00
Geoff McLane 4224227cb2 Merge pull request #563 from htacg/issue-392
Issue 392 - creeping php
2017-05-27 16:33:15 +02:00
Geoff McLane 825ad59262 Merge branch 'next' into issue-392 2017-05-27 16:25:24 +02:00
Jim Derry 5d057abdcb Bumped to 5.5.27 for console tweaks. 2017-05-21 14:33:10 -04:00
Jim Derry cefe56dda5 Merge branch 'improve_console_output' into next 2017-05-21 14:32:38 -04:00
Jim Derry 47c27ecf8e Generated French header file; bumped to 5.5.26 for updated French language. 2017-05-21 14:29:13 -04:00
Jim Derry 7080ed970a Merge pull request #559 from sballeste/next
Improve french translations (next branch).
2017-05-21 14:25:43 -04:00
Jim Derry b475ca593d Bumped to 5.5.25. 2017-05-21 14:24:57 -04:00
Jim Derry 996ddb813d Merge pull request #554 from htacg/issue-365
Issue 365
2017-05-21 14:24:03 -04:00
Geoff McLane c9c1d7ae55 Issue #395 - a potential fix 2017-05-21 01:47:36 +02:00
Geoff McLane 6f05041b5e Issue #392 - a simple fix, but maybe incomplete 2017-05-21 00:18:43 +02:00
Geoff McLane ec03beb361 Issue #552 - remove no 'case default:' warning in most gcc versions
Seems too small for a version bump. Closes #552
2017-05-19 18:38:01 +02:00
Sébastien Ballesté-Antich e07b54a4da Improve french language with poconvert. 2017-05-16 22:38:39 +02:00
Sébastien Ballesté-Antich cc4ad195c5 Add 3 msgid introduced in commit 5791c55 2017-05-16 21:43:58 +02:00
Sébastien Ballesté-Antich 7feab96480 Improve french translations. 2017-05-16 19:03:12 +02:00
Jim Derry 9b2cd06711 Merge branch 'next' into issue-365 2017-05-13 22:27:14 -04:00
Jim Derry 8a639bf91b Bumped to 5.5.24 for language updates. 2017-05-13 22:25:12 -04:00
Jim Derry 66d0825e58 Merge pull request #557 from htacg/update_langs
Update languages against current English.
2017-05-13 22:24:43 -04:00
Jim Derry 5fad2252d2 Bumped to 5.5.23 for #378. 2017-05-13 22:20:36 -04:00
Jim Derry eb6bd1c1d5 Merge pull request #556 from htacg/issue-378
Address #378
2017-05-13 22:19:52 -04:00
Jim Derry 5791c55081 Update languages against current English. 2017-05-13 21:07:02 -04:00
Jim Derry 0f1e625324 Address #378
Addresses issue #378 by NOT emitting warnings if `fix-uri` is `no`, for HTML5
documents. This preserves existing behavior for legacy document types.
2017-05-13 20:46:48 -04:00