Commit graph

935 commits

Author SHA1 Message Date
Geoff McLane 3aa50740da Issue #215 - only issue warning if NOT HTML5 mode 2015-06-21 19:49:44 +02:00
Geoff McLane 0b0eb32843 Begin adding some doxygen syntax for next API doc gen 2015-06-09 20:06:39 +02:00
Geoff McLane e71bda718f Add TIDY_CALL to tidyLibraryVersion func. 2015-06-09 20:04:49 +02:00
Geoff R. McLane c7aca7ec83 Seems REPEAT_BRIEF = YES is a better goxygen.cfg 2015-06-09 16:13:01 +02:00
Geoff McLane b60d82d766 Update verhist.log 2015-06-09 15:33:50 +02:00
Geoff McLane 016f538d93 Add usual NOPAUSE option to pub-bins.bat files 2015-06-09 15:27:26 +02:00
Geoff McLane 7b7fbce9ab #190 & #148 - Bump to version 4.9.35, and add a date 2015-06-09 12:32:26 +02:00
Geoff McLane 250ce1c6d0 Issue #190 & #148 - Restore tidyReleaseDate() function.
There was an idea to mark this function deprecated, such that if used the
developer would see a warning. But this was never implemented in a cross
platform way.

So for now revert to circa Jan 2015 when Jim added a build date to the
version.txt file. And now both LIBTIDY_VERSION and RELEASE_DATE macros are
established in CMakeLists.txt, and picked up in version.h.

The idea is the date will now march forward with the version number, side
by side in version.txt. Although have left tidy.c only emitting the
version on the --version command.

After this function has been marked deprecated for several release periods,
only then should consideration be given to potentially removing it.
2015-06-09 12:29:51 +02:00
Geoff McLane bea5bb700f Issue #218 - bump version for this fix 2015-06-08 13:53:38 +02:00
Geoff McLane 18880eab55 Issue #218 - Do NOT allocate a 1 byte null String buffer.
This is when setting a String config value through say tidyOptSetValue
using say tidyOptSetValue(tdoc,id,"").

If the length of the new string is zero then do not allocate a 1 byte
buffer, set it to 0, for the option. Any previous buffer has already been
released.

This means API functions like tidyOptSaveSink will not return erroneous
null String values!
2015-06-08 13:52:00 +02:00
Geoff McLane 3f72b6e335 Issue #210 - Add new warning for summary attr in table if HTML5.
This new warning will only be seen if the document remains in HTML5 mode,
where the summary attribute is obsolete. The W3C validator flags this as
an error, and suggests 'Consider describing the structure of the table in
a caption element or in a figure element containing the table; or simplify
the structure of the table so that no description is needed'.

At the same time this patch also restored the old warning if the document
is HTML4--, if the table element lacks a summary attribute. This has been
a tidy warning since the beginning of time, although the W3C validator
does not presently flag this.
2015-06-06 11:20:35 +02:00
Geoff McLane f67300963e Issue #210 - Bump version for this new warning 2015-06-06 11:06:37 +02:00
Geoff McLane bc6068c447 Add ignore '*.old' to root .gitignore 2015-06-04 20:11:16 +02:00
Geoff R. McLane 8dff34cbdc add convenient pub binaries script 2015-06-04 19:12:25 +02:00
Geoff McLane a1da576946 Add some convenient bats to publish binaries 2015-06-04 18:01:29 +02:00
Geoff McLane 50c213f37a Update verhist.log 2015-06-04 17:42:28 +02:00
Geoff McLane 544f9876cc Issue #212 - bump version for this additional change 2015-06-04 13:21:00 +02:00
Geoff McLane 326f2414fd Issue #212 - Further fix to set MixedContent in some cases.
In certain circumstances a leading space has to be preverved to allow it
to be used to create a text space node to insert before this element to
preserve the view in a browser.

And added a note asking why is ParseTag called with a hardcoded
IgnoreWhitespace when some effort above has set the mode variable to
MixedContent in certain cases, but need to think about this 2nd change.

Also added some MSVC Debug output when this leading text is used to insert
such a created text node before the element just to be reminded of this
special event.
2015-06-04 13:12:05 +02:00
Geoff McLane a278b04a19 Add debug display of text modes.
Note this ONLY effects a MSVC Debug build!
2015-06-04 12:59:02 +02:00
Geoff McLane 0c96ed8af4 Bump version for issue #217 fix 2015-06-03 20:27:01 +02:00
Geoff McLane c18f27a587 Issue #217 - avoid len going negative, ever... 2015-06-03 20:26:03 +02:00
Geoff McLane 0fb7ccdfc6 Add some mem alloc and free debug to chase Issue #217
Such debug is OFF by default, and only added by defining DEBUG_MEMORY. And
is only available for the Debug configuration compiled with MSVC, but this
could be easily extended...
2015-06-03 20:24:41 +02:00
Geoff McLane fc696636e2 Merge branch 'master' of github.com:htacg/tidy-html5 2015-06-02 20:44:28 +02:00
Geoff McLane 944b412fe6 Need extra include if UNICODE is defines 2015-06-02 20:44:00 +02:00
Geoff McLane 5e9eb0b7fd Small fix in platform.h, just for windows (WIN32)
Not sure how this has lasted so long, but I guess there are not too many
users wanting to specifically use the static tidy library.

Now it is possible to define TIDY_STATIC and the TIDY_EXPORT macro will
just be 'external', suitable for linking with the static library, instead
of adding the _imp_ MSVC __declspec( dllimport )...

This fix does not effect other than the WIN32 platform build.
2015-06-02 20:41:11 +02:00
Geoff R. McLane c266d36fad keep a recent gen'ed quickref.html in documentation 2015-06-02 17:15:05 +02:00
Geoff McLane b8bc88522c small fix for indent-with-tabs to have a default xml value 2015-05-25 16:48:39 +02:00
Geoff McLane d9113957d8 Reverse option wording to reflect new default ON 2015-05-25 13:33:32 +02:00
Geoff McLane fb637608fb Fix README.md to show now both shared and static libraries are built 2015-05-25 13:24:50 +02:00
Ionel Roiban e13a535a0c Merge pull request #216 from denji/patch-1
5.0.0
2015-05-24 16:51:31 -04:00
Denis Denisov 5a28d5f010 5.0.0
htacg/tidy-html5#190
2015-05-24 23:49:00 +03:00
Geoff McLane dde78c2dbf bump to 4.9.30 adding build shared and static 2015-05-24 15:23:59 +02:00
Geoff McLane efb8e37664 Build both static and shared libraries.
First many other projects do this, and it seems a good choice.

Due mainly to windows where the static and shared libraries have the same
name, appended an 's' to the static library.

The tidy console app will use the static library, since to build the man
page tidy may need to be run before the shared libraries are installed.
And this makes the windows tidy exe a stand-alone app. No DLL install
issue.

This addresses issue #194, and possibly #190
2015-05-24 15:21:30 +02:00
Geoff McLane bb35166ed0 update the verhist.log 2015-05-22 19:06:17 +02:00
Geoff McLane 3686bc5390 Issue #108 - merged indent-with-tabs branch into master.
Thought there may be some comments on this but nothing for a week.
So have merged to master hoping more people will test it, and any
remaining issues resolved.

Now it will be present from version 4.9.29 onwards.
2015-05-22 16:33:20 +02:00
Geoff McLane 843bfae523 Merge branch 'indent-with-tabs' of github.com:htacg/tidy-html5 into indent-with-tabs 2015-05-22 16:06:48 +02:00
Geoff McLane 3f33ba2d88 Issue #108 - make sure the version indicates this with tabs 2015-05-22 16:06:13 +02:00
Geoff McLane d923dd7b2d Issue #108 - first cut new option --indent-with-tabs yes. 2015-05-22 16:06:12 +02:00
Geoff McLane cb790c37ab add version history log, verhist.log 2015-05-22 15:59:51 +02:00
Geoff McLane 8a2a5cc013 Add a check for the 'master' branch 2015-05-20 20:09:57 +02:00
Geoff McLane e98a17a672 correct install location, and build shared library 2015-05-20 14:07:39 +02:00
Geoff McLane 47df85550c clean up some more build components 2015-05-20 14:06:30 +02:00
Geoff R. McLane aab1e46cb7 ignore some doc building conponents 2015-05-19 16:53:29 +02:00
Geoff R. McLane 65d230a167 add documentation target 2015-05-19 16:51:15 +02:00
Geoff McLane 763c6a28a6 Issue #108 - make sure the version indicates this with tabs 2015-05-15 16:17:46 +02:00
Geoff McLane 231061e90a Issue #108 - first cut new option --indent-with-tabs yes. 2015-05-15 15:08:53 +02:00
Geoff McLane 97853993ec add the new testinfo.txt file decription 2015-05-14 15:03:36 +02:00
Geoff McLane 0851069320 add a brief description of each test 2015-05-14 15:02:46 +02:00
Geoff McLane 0c65b1c410 fix goto target type 2015-05-14 14:52:05 +02:00
Geoff McLane 59f25fe32a Likewise, add info is onetest2.bat is run 2015-05-14 14:47:02 +02:00