Commit graph

911 commits

Author SHA1 Message Date
Geoff McLane d26cd72084 Add macros to get TidyVertSpace config, and implement 2015-07-15 20:58:00 +02:00
Geoff McLane 154a61543b Expand xml TidyVertSpace text to include tri-state 2015-07-15 20:56:22 +02:00
Geoff McLane 16580e0926 Revert TidyVertSpace to 'no', and make AutoBool option 2015-07-15 20:54:50 +02:00
Geoff McLane 4246c2c462 Issue #230: Need to KEEP this newline char sometimes.
This is a case where the lexer, in GetTokenfromStream, does NOT eat any
trailing newline after a LEX_STARTTAG: case...

So far have identified pre, script, style as NEEDING this user newline
character for later pprint output. Any others?
2015-07-15 19:41:02 +02:00
Geoff McLane 54130dce48 Default to no DLL if WIN32, 64-bit build 2015-07-15 19:29:53 +02:00
Geoff McLane 33494a4aea Bump version for #158 fix by PR #229 2015-07-14 11:27:15 +02:00
Geoff McLane 2c886155d0 Merge pull request #229 from camoy/master
Fix #158 - remove inserted newlines in pre

It seems this does fix this specific issue... thanks...

See #228 for some other comments on this...
2015-07-14 11:24:59 +02:00
Cameron Moy d50391a984 Fix #158 - remove inserted newlines in pre 2015-07-13 16:31:52 -04:00
Geoff McLane cb2543efac Merge branch 'master' of https://github.com/stencila/tidy-html5 into issue-228 2015-07-13 19:11:30 +02:00
Geoff McLane 97c7065177 Remove RC_NUMBER from development master branch 2015-07-13 12:42:19 +02:00
Geoff McLane 7f9df1c746 Issue #226 - bump version on API extension 2015-07-13 12:18:10 +02:00
Geoff McLane 3fccc15ae8 Merge pull request #226 from flok99/master
Added methods for delete-ing nodes and/or attributes. #226
2015-07-13 12:15:52 +02:00
Nokome Bentley 991630e523 Changes default for vertical-space to yes
Makes this more similar (but not the same) as the previous default
behaviour.
2015-07-13 15:56:15 +12:00
Nokome Bentley b6bcf0408c Applies "smart" new lines to start of script like tags 2015-07-13 15:49:07 +12:00
Nokome Bentley f6979787d1 Adds "smart" line flushing functions.
See in-code comments for more details
2015-07-13 15:40:59 +12:00
Geoff McLane 0d02731679 Add development and release branch meaning 2015-07-13 03:08:24 +02:00
Geoff McLane 2da67a2bbc Bump version to 5.1.0, after 5.0.0 release.
As per the chosen versioning system, this immediately becomes 5.1.0, the
master development stream - hopefully ALWAYS stable - with improvements of
all types...

Should any bug fix be interesting for 5.0.0 release, this change would be
push to the release/5.0.0 branch, making it version 5.0.1... or 5.0.0RC2
if still in the RC stage of release...
2015-07-13 02:17:08 +02:00
Folkert van Heusden 784c7d7f79 Added methods for deleteing nodes and/or attributes.
This is useful when e.g. writing an HTML cleaner.
2015-07-12 18:34:35 +00:00
Geoff McLane f450263d43 Update vershist.log 2015-07-01 15:57:50 +02:00
Geoff McLane 9736aa8af8 Adjust batch files for 'tidy5' to 'tidy' 2015-07-01 15:50:19 +02:00
Geoff R. McLane 8d70783a63 clean up the new names 2015-07-01 12:08:49 +02:00
Geoff R. McLane 1b461ec624 ignore gcc built items 2015-06-30 20:18:14 +02:00
Geoff McLane 1e70fc6f15 Rename two headers. Issues #224 #223 #221
But this seemed a good time to release 5.0.0.RC1...
2015-06-30 20:06:02 +02:00
Geoff McLane daef037156 Bump version of #207 change 2015-06-24 13:12:31 +02:00
Geoff McLane 3a524f1710 Issue #207 - deal with 2 cases of an unambiguous ampersand.
html5 allows a naked ampersand unquoted, and now tidy will not issue a
warning. This only deals with a & b, and P&<li>O</li>

More may need to be done for other cases.
2015-06-24 13:10:27 +02:00
Geoff McLane b65988c95a Bump version for #215 fix 2015-06-21 19:50:56 +02:00
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