-
Notifications
You must be signed in to change notification settings - Fork 23
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
Modernise #69
Conversation
435add5
to
697e08a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added small comments
src/exml_query.erl
Outdated
%% @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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%% 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), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Last | RevChildren] = lists:reverse(Tail), | |
%% Add extra nesting for streams so pretty-printing would be indented properly | |
[Last | RevChildren] = lists:reverse(Tail), |
src/exml_stream.erl
Outdated
%% Parser options | ||
%% | ||
%% <ul> | ||
%% <li>`infinite_stream': No distinct `t:start()' or `t:stop()', only #xmlel{} will be returned.</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%% <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> |
2823881
to
880c508
Compare
880c508
to
3df87ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Mostly docs improvements and newer erlang in CI, only one optimisation in code in the printing function.