lib/eddy/models/transaction_set.rb in eddy-0.8.2 vs lib/eddy/models/transaction_set.rb in eddy-0.8.3
- old
+ new
@@ -80,10 +80,10 @@
#
# @param s_sep [String] (self.store.segment_separator)
# @return [String]
def render(s_sep = self.store.segment_separator)
add_envelope()
- return self.all_components.map { |s| s.render(self.store.element_separator) }.compact.join(s_sep)
+ return self.all_components.map { |s| s.render(self.store.element_separator) }.compact.join(s_sep).rstrip()
end
# Return the count of Segments in the Transaction Set where `skip` is false,
# plus 2 for `ST` and `SE`.
#