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

patch v0.0.6 #7

Merged
merged 1 commit into from
Apr 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ TO DO:
Version Changes Control
=======================

v0.0.6 - 2020-03-08
------------------------
- Correction on assigning the node data (concatened, only if some info into it: will ignore spaces and line formatting characters)

v0.0.5 - 2020-03-07
-----------------------
- Added UnmarshalXML
Expand Down
5 changes: 4 additions & 1 deletion node.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ func (n *Node) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
return nil
}
case xml.CharData:
n.Data = string(tt)
s := strings.TrimSpace(string(tt))
if s != "" {
n.Data += string(tt)
}
}
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion wajaf.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package wajaf

// VERSION is the used version nombre of the XCore library.
const VERSION = "0.0.5"
const VERSION = "0.0.6"

// LOG is the flag to activate logging on the library.
// if LOG is set to TRUE, LOG indicates to the XCore libraries to log a trace of functions called, with most important parameters.
Expand Down