Lee
fa78a324d0
update --gnu-emacs option documentation
2018-04-13 10:01:39 -04:00
Geoff McLane
e10c29bde8
Merge pull request #695 from htacg/issue-679
...
Issue 679
2018-04-13 15:25:32 +02:00
積丹尼 Dan Jacobson
a77dfb686f
Update language_en.h
...
Default: no means YES DO print out comments.
If set to YES, then DON'T print out comments.
(cherry picked from commit 95af5ad39a
)
2018-04-13 15:09:14 +02:00
Geoff McLane
d85cc8c23d
Is #709 - Improve message if 'implict'
2018-04-06 14:48:26 +02:00
Doron Behar
6636602260
Make global attribute dir
accept auto as well.
2018-04-04 13:29:30 +03:00
Geoff McLane
3c386809a7
Is #700 - change script parsing if in html5 mode
2018-03-23 20:08:54 +01:00
Geoff McLane
e36df3b4cd
Is #697 - Add NOWRAP to print of pre tag
2018-03-20 19:52:35 +01:00
Geoff McLane
db02d4504b
Is #686 - Add attr COLOR to W3CAttrsFor_LINK
2018-03-08 18:10:23 +01:00
Geoff McLane
ea4ae0dd13
Is #679 - some fixes for -export-config
2018-02-19 03:21:04 +01:00
Geoff McLane
67eaeb6d18
Is #673 - Revert 350f7b4
and 86e62db
...
While these look like a code cleanup, they appear to have an adverse
consequence in the use of libtidy by PHP 7+, so have been reverted.
modified: src/config.c
modified: src/config.h
modified: src/tidylib.c
2018-02-14 18:54:01 +01:00
Geoff McLane
1f22358a57
Merge pull request #664 from htacg/issue-663
...
Issue 663 - fixes for Haiku port - closes #663
2018-01-01 18:28:05 +01:00
Geoff McLane
1db2208106
Merge pull request #662 from htacg/issue-655
...
Issue #655 - Fix unsafe use of output buffer as input param - closes #655
2018-01-01 18:22:57 +01:00
Geoff McLane
28be79db50
Is #663 - Reduce static alloc to as required
2017-12-25 18:10:29 +01:00
Geoff McLane
ccde058772
Is #663 - Open context for gcc 2.95 port
2017-12-25 03:26:53 +01:00
Geoff McLane
a33520ad85
Is #663 - Add language limit for 'Haiku' gcc 2.95
2017-12-25 03:25:29 +01:00
Geoff McLane
7af9e1843b
Is #663 - Remove UTF-8 BOM from 6 lang. headers
2017-12-23 18:28:32 +01:00
Geoff McLane
7f9e02b2fb
Is #663 - Small change for MSVC10
2017-12-23 17:36:05 +01:00
Geoff McLane
629843401d
Issue #655 - Fix unsafe use of output buffer as input param
2017-12-16 21:10:04 +01:00
Geoff McLane
a0414d65a6
Issue #656 - protect against NULL node set in loop
2017-12-16 20:54:29 +01:00
Jim Derry
2cc140355d
Changed iterator internal logic to use a one-based index instead of 0; an
...
index of 0 can be considered NULL.
2017-11-22 12:33:12 -05:00
Geoff McLane
d23e22589e
Issue #403 PR #641 - Hot fix for column tabs count
2017-11-22 15:00:14 +01:00
Jim Derry
1f1d0a525a
Fixed missing closing tag preventing man build. No version bump.
2017-11-20 09:53:27 -05:00
Jim Derry
6d6eb3797b
Merge remote-tracking branch 'origin/keep-tabs' into complete_callbacks
2017-11-20 09:31:44 -05:00
Jim Derry
9eadf3078e
Merge remote-tracking branch 'origin/issue-643' into complete_callbacks
2017-11-20 09:29:16 -05:00
Jim Derry
314690ad7f
Option changed callback now implemented.
2017-11-20 09:27:59 -05:00
Jim Derry
fcd4e90ea7
Fix issue where console app and API can't set an FPI for a doctype without
...
providing a quoted string. This is especially painful in a terminal, which
requires escaping quotes. Since all FPI's must start with + or -, this fixes
the issue.
2017-11-19 12:54:08 -05:00
Jim Derry
ae20af4181
Added a new tidyOptionIsList() API service.
2017-11-19 12:02:24 -05:00
Jim Derry
b342232378
Fixed logical issue with new iterators.
2017-11-19 11:02:13 -05:00
Jim Derry
8ddc0105f9
Add missing iterators for recently added options mute and priority attributes.
2017-11-19 10:21:46 -05:00
Jim Derry
7105dbe0ee
Cosmetic update for doxygen.
2017-11-17 22:00:29 -05:00
Jim Derry
b2d3bab9d1
Doxygen fixes for previous.
2017-11-17 21:55:46 -05:00
Jim Derry
7598d9d0a1
Added internal documentation to parser.h.
2017-11-17 21:51:35 -05:00
Jim Derry
2957cb135b
Moved orphans from attrapi.c to tidy.c; eliminate attrapi.c. This only affects internal binary representation, but there's not API change, so no version bump.
2017-11-17 21:39:30 -05:00
Jim Derry
e7bacf2245
Allow all parsers to accept NULLSTR input for API consistency.
2017-11-17 21:30:19 -05:00
Jim Derry
fec21eebba
Merge branch 'next' into fix_doctype_option
2017-11-17 19:17:14 -05:00
Jim Derry
1dd85ad1c6
Restore alphabetical order to the options enums and structure. No version bump.
2017-11-17 19:16:58 -05:00
Geoff McLane
cea9a465f3
Issue #643 - Fix HTMLVersion function back to what it was!
2017-11-17 14:47:24 +01:00
Jim Derry
e6c891ea00
Doctype made no sense! It was a write-only property in some cases, and uses
...
itself and DoctypeMode to make up for Tidy's ability to store only a single
value for an option. It's a little bit special relative to every single other
option, in that it's declared as a string, but also has a picklist. This change
makes Doctype behave in the way every other Tidy option behaves, and treats
Doctype as a string, but also supports selection via the picklist.
2017-11-17 08:11:22 -05:00
Geoff McLane
a820ff5897
Issue #643 - Add VERS_HTML5 to VERS_FROM40
2017-11-17 02:52:32 +01:00
Geoff McLane
6a3e3fae77
Issue #643 - Only break lookup if 'code' AND 'version' found.
2017-11-17 02:46:14 +01:00
Geoff McLane
eefd2edda7
Issue #643 - Set debug trap - NOT important
2017-11-17 02:44:54 +01:00
Geoff McLane
54f14ff9fc
Issue #643 - Some entity table corrections.
...
Default all the VERS_CHECK to VERS_HTML5
Change OverBar to 8254 in place of 175
Change UnderBar to 95 in place of 818
Change angst to 197 in place of 8491
Add bsolhsub 10184
Change epsi to 949 over 1013
Change epsiv to 1013 over 949
Change ohm to 937 over 8486, although appears the same
Change phiv to 981 over 966
Remove race as a two-value entity
Add suphsol 10185
Change varepsilon to 1013 over 949
Change varphi to 981 over 966
2017-11-15 15:52:36 +01:00
Geoff McLane
a754957808
Issue #643 - Greatly expand entities list
2017-11-09 19:41:57 +01:00
Geoff McLane
e4fc470592
Issue #403 - correct spelling
2017-11-07 20:36:55 +01:00
Geoff McLane
7bbeae3eea
Issue #403 - Fix and enhance descripion of keep-tabs option
2017-11-07 20:29:04 +01:00
Geoff McLane
b58abe30d0
Issue #403 - Special DEBUG change to 'see' tabs
2017-11-05 18:04:52 +01:00
Geoff McLane
2aeb2eeb7a
Issue #403 - New 'keep-tabs' option to address this.
2017-11-03 19:16:17 +01:00
Geoff McLane
4b5c86ee47
Small fix to compile with MSVC10, exposed in #636
...
MSVC10 2010 enforces K&R C that all variables must be declared before code
in any given context.
Unable to fix a gcc option that will expose this...
modified: src/config.c
2017-11-02 18:47:18 +01:00
Jim Derry
57f623eb7c
Updated PR to make LIBRARY default to the environment language, rather than just console tidy.
2017-10-31 17:41:32 -04:00
Jim Derry
cc023c26b7
Address #639 .
2017-10-30 07:53:35 -04:00
Jim Derry
5fb1138840
Fixed indentation.
2017-10-29 15:04:51 -04:00
Jim Derry
f5bdedecaf
Cleanup
...
- Added doxygen documentation to `tags.h`
- Consistency to `tags.c` header.
- Moved TY_(DeclareUserTag) to tags.c/.h for consistency with the other list
parsing declaratory functions.
- Merged user tags parsing into the general list, eliminating a lot of redundant
code.
2017-10-29 14:58:02 -04:00
Geoff McLane
319cded6ec
Merge pull request #637 from jokester/remove-direct-strdup-free
...
use default allocator in place of strdup/free
2017-10-29 18:30:52 +01:00
Jim Derry
86e62dbb70
Remove unnecessary AdjustConfig logic.
2017-10-26 18:25:55 -04:00
Jim Derry
350f7b4af7
Replaced AdjustConfig() with TY_(AdjustConfig)()
2017-10-26 18:08:17 -04:00
Jim Derry
056bd85d3d
Touch up option descriptions, particularly the encoding options in order to better describe their interaction.
2017-10-26 14:25:02 -04:00
Jim Derry
aec686b1a9
Add a true "default" to TidyCSSPrefix so that it will be shown in documentation.
2017-10-26 14:24:35 -04:00
Jim Derry
a1a58ec1bd
Merge branch 'next' into snapshot_fixes
2017-10-25 20:03:17 -04:00
Jim Derry
fc3cba86a8
I guess no one tried to use this before... it's been broken since the initial commit. We've been comparing the config value from a different option the whole time.
2017-10-25 15:04:49 -04:00
Wang Guan
ff68144724
use default allocator in place of strdup/free
2017-10-26 00:54:55 +09:00
Jim Derry
c12e2b2149
Ensure that TidyQuiet
silences everything that it currently quiets, plus
...
`TidyConfig` and `TidyInfo` messages. This causes a single regression by hiding
`TidyInfo`; will publish PR in testing repo.
2017-10-20 08:52:37 -04:00
Jim Derry
4b1c048ee5
Correct configCallback logic fix.
2017-10-20 07:46:00 -04:00
Jim Derry
d302559080
Doxygen fix. No bump.
2017-10-19 20:46:21 -04:00
Jim Derry
a03ddc03a0
Documentation generation bug fix. Version bump.
2017-10-19 20:33:17 -04:00
Jim Derry
7e53038fa8
Updated documentation for doxygen. No version bump.
2017-10-19 20:27:12 -04:00
Jim Derry
492c9fb74b
Avoid short circuit evaluation to give new callback a chance to execute.
...
Version bump.
2017-10-19 20:11:26 -04:00
Jim Derry
6d8d153143
Merge pull request #630 from jokester/close-stdin-after-parse
...
close stdin and free its FileSource in tidyDocParseStdin
2017-10-19 17:41:00 -04:00
Jim Derry
9c96551fe0
Merge branch 'issue-604' into next
2017-10-19 17:37:22 -04:00
Jim Derry
93957e4b17
Merge pull request #629 from htacg/squelch_reports
...
Squelch reports
2017-10-19 17:21:37 -04:00
Jim Derry
2340e63f8b
Expose the platform name to the public API.
2017-10-19 17:11:29 -04:00
Geoff McLane
41675e75f7
Issue #604 - Remove 'sprtf' code if not ENABLE_DEBUG_LOG
2017-10-14 12:27:19 +02:00
Geoff McLane
3b154dc407
Issue #604 - Try to fix. Initial cut. WIP
2017-10-13 20:50:53 +02:00
Wang Guan
dacb63da31
close stdin and free its FileSource in tidyDocParseStdin
2017-10-14 02:44:33 +09:00
Jim Derry
1d91942960
Renamed the proposed squelch
and squelch-id
to mute
and mute-id
,
...
respectively. Updated matching cases in test branch accordingly.
2017-10-10 08:21:14 -04:00
Jim Derry
346ba063c9
Expose the new property to the public API.
2017-10-08 12:03:48 -04:00
Jim Derry
6f0ada7ffe
Typo
2017-10-08 11:53:36 -04:00
Jim Derry
ad03b28318
Remove @todo note.
2017-10-08 11:51:19 -04:00
Jim Derry
e6f007d8ba
Code spacing consistency.
2017-10-08 11:44:45 -04:00
Jim Derry
f72c3d27e1
Show full prototype in forward declaration.
2017-10-08 11:40:53 -04:00
Jim Derry
2e58434e8d
Actually, we should only show labels on reports, not dialogue.
2017-10-08 11:30:29 -04:00
Jim Derry
0548e67fa5
Oops, need to return.
2017-10-08 11:19:00 -04:00
Jim Derry
626375346d
Adds message squelching (muting) to Tidy, avoiding the need to specify a new
...
option every time we might want to allow or disallow new output. Adds two new
options:
- `squelch-id` (default **no**) will provide tags during Tidy's output that
can be used to silence warnings. For example, `MISSING_ENDTAG_OPTIONAL`
will be shown after warnings of that type. Then in the future, the user can
use...
- `squelch` (default NULL) takes a list of message identification tags.
Messages of this tag type will then be muted from output.
This gives the user great control over hiding things that he or she doesn't care
about seeing. However, muted errors/warnings still count toward error summaries.
If we merge this, then TidyShowMetaChange and TidyWarnPropAttrs are candidates
for removal (using the deprecation mechanism Tidy now has, these will continue
to work, though).
2017-10-08 10:47:03 -04:00
Jim Derry
5e66816380
Spacing consistency.
2017-10-08 10:25:09 -04:00
Jim Derry
ab8a4249df
Added squelch-id
(TidySquelchShow) so that message ID's will be displayed in
...
the report output table. This can be used to show message ID's that the user
can use to filter against in the upcoming `squelch` option.
2017-10-07 18:10:46 -04:00
Jim Derry
b31dd6fcc2
Added some internal structures and code to support the removal of config
...
options in the future, with full user notification. Right now this code is
dead, because no options have been removed. No version bump.
2017-10-07 16:11:51 -04:00
Jim Derry
217d05fe49
Merge branch 'next' into deprecation_mechanism
2017-10-07 14:59:35 -04:00
Jim Derry
0977aa6077
Removed dependency on NDEBUG, and introduced ENABLE_DEBUG_LOG in CMakeLists.txt.
...
By default Windows will continue to show SPRTF output, and other platforms will
require the -DENABLE_DEBUG_LOG to be set in default (debug) configurations.
Debug and Release builds on macOS, Windows 10, and Ubuntu 16.04 confirmed
working as most people expect.
2017-10-07 14:56:01 -04:00
Jim Derry
f26b198213
Hot-fix the NDEBUG, which affected default builds that users might not expect
...
if they follow the build instructions.
2017-10-07 14:07:12 -04:00
Jim Derry
6b14c559f9
Adding some documentation WIP
2017-10-07 12:14:51 -04:00
Jim Derry
2e4393e37b
Works for -config files now, too.
2017-10-07 11:20:57 -04:00
Jim Derry
483d17e39b
Experimentally working.
2017-10-07 11:04:18 -04:00
Jim Derry
2e2062ddec
WIP with functioning concept.
2017-10-06 16:14:54 -04:00
Jim Derry
4e6d76eb01
Fixed broken option callback; version bump to reflect.
2017-10-06 09:41:54 -04:00
Jim Derry
a413b1264b
Merge branch 'next' into options_categories
2017-10-05 15:15:36 -04:00
Jim Derry
ac4a79a5ac
Regenerate languages.
2017-10-05 15:08:46 -04:00
Jim Derry
fa30773938
Centralize control of message output to the messageOut() method in order to:
...
- Prevent the message filter from missing possible messages due to dispered
control.
- Single decision point for the types of messages to be output given current
conditions and options settings.
2017-10-05 15:04:22 -04:00
Jim Derry
bd3503eea5
Changed the XML classes to use the string representation of the key rather than
...
the translated string of they key, which fix manpage and quickref generation in
non-default locales.
As a result the translated strings are no longer used and have been deleted.
2017-10-05 09:31:25 -04:00
Jim Derry
9565a15f48
Merge branch 'next' into options_categories
2017-10-04 13:42:25 -04:00
Jim Derry
4c74b14991
Not sure how this got missed.
2017-10-04 13:40:19 -04:00
Jim Derry
4fa26f4f5d
Affects documentation only: updates the manpage (and soon the quickref) by
...
breaking up the existing options into several more logical categories.
2017-10-04 12:24:07 -04:00