Skip to content

-export-config creates invalid configuration file #679

Closed
@AnrDaemon

Description

@AnrDaemon

HTML Tidy 5.6 (windows build)

_config="$( mktemp --tmpdir XXXXXX.tidy )"
test "$_config" || exit 1
trap "rm '$_config'" EXIT HUP INT QUIT ABRT TERM
HTML_TIDY=
tidy -xml --new-blocklevel-tags "b1 b2" --new-empty-tags e1,e2 --new-inline-tags i1,i2 --new-pre-tags p1,p2 --priority-attributes "a1 a2" -export-config > "$_config"
grep -E "^(new\-[a-z]+\-tags|priority\-attributes|):" "$_config"
tidy -xml -config "$_config" -export-config | diff -bd "$_config" -

Sample output

new-blocklevel-tags: b2
: b1
new-empty-tags: e2
: e1
new-inline-tags: i2
: i1
new-pre-tags: p2
: p1
priority-attributes:
14c14
< css-prefix: c
---
> css-prefix: c-
56d55
< : b1
58d56
< : e1
60d57
< : i1
62d58
< : p1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions