Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernise #69

Merged
merged 5 commits into from
Jan 12, 2024
Merged

Modernise #69

merged 5 commits into from
Jan 12, 2024

Conversation

NelsonVides
Copy link

@NelsonVides NelsonVides commented Jan 12, 2024

Mostly docs improvements and newer erlang in CI, only one optimisation in code in the printing function.

Copy link

@arcusfelis arcusfelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added small comments

%% @doc Gets the element/attr/cdata in the leftmost possible described path,
%% or `Default' if there is no match.
%%
%% Find an element in the xml tree by a path that is pattern-matched against such xml tree structure

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%% Find an element in the xml tree by a path that is pattern-matched against such xml tree structure
%% Find an element in the xml tree by a path that is pattern-matched against such xml tree structure.

same below

to_iolist([Element], Pretty) ->
to_iolist(Element, Pretty);
to_iolist([#xmlstreamstart{name = Name, attrs = Attrs} | Tail] = Elements, Pretty) ->
[Last | RevChildren] = lists:reverse(Tail),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[Last | RevChildren] = lists:reverse(Tail),
%% Add extra nesting for streams so pretty-printing would be indented properly
[Last | RevChildren] = lists:reverse(Tail),

%% Parser options
%%
%% <ul>
%% <li>`infinite_stream': No distinct `t:start()' or `t:stop()', only #xmlel{} will be returned.</li>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%% <li>`infinite_stream': No distinct `t:start()' or `t:stop()', only #xmlel{} will be returned.</li>
%% <li>`infinite_stream': No distinct `t:start()' or `t:stop()', only `#xmlel{}' will be returned.</li>

@NelsonVides NelsonVides force-pushed the modernise branch 2 times, most recently from 2823881 to 880c508 Compare January 12, 2024 14:54
Copy link

@arcusfelis arcusfelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@arcusfelis arcusfelis merged commit deafb32 into master Jan 12, 2024
3 checks passed
@arcusfelis arcusfelis deleted the modernise branch January 12, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants