oga 2.5-java → 2.6-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2db4c3a8b9f2825e7ab1b739ce4398d7a93c5d1
4
- data.tar.gz: 1e5a3ee3a20dacb5ad7edb0e2f8257a3a3b8e23b
3
+ metadata.gz: dad5d81a658134c5444f6aa3407363f1e7fc5c79
4
+ data.tar.gz: 4b8a0e6b2ae72591ab61d24f4eac9ca302b7c6bb
5
5
  SHA512:
6
- metadata.gz: 2afae82887211e5b39cc78336c1885140544fce646049e8693bbcaa837ddb4a20668db0f4af2ec91d4205efd069ca181d164928c0eb984e2fe50ed732a118029
7
- data.tar.gz: 255816167d63fabccb6a24bb3b56e4fd60ad41bb362196b09134dede76c3b4186e87551ede2c1b0e87bae537dc556455ae58981a2f1429840d152c370d69f028
6
+ metadata.gz: e0f381e719f3d67d28d556d164dda0accae64e72b28687879b51c04c2c124bb5b3c6b13e84e0fbb7e39e1a2abb0a89f0779c42b34fe22d014b4a7c338d87aa53
7
+ data.tar.gz: 3c0ebe994a30fbec287f488aa26121651e479f9d4ad0a7f5561bb203522973e9087b2ac63dab2947db3c39295bd2a3007ea79df09fe80b6402ce313adc443e2e
data/doc/css/common.css CHANGED
@@ -2,8 +2,6 @@ body
2
2
  {
3
3
  font-size: 14px;
4
4
  line-height: 1.6;
5
- margin: 0 auto;
6
- max-width: 960px;
7
5
  }
8
6
 
9
7
  p code, dd code, li code
data/lib/liboga.jar CHANGED
Binary file
data/lib/oga/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oga
2
- VERSION = '2.5'
2
+ VERSION = '2.6'
3
3
  end # Oga
@@ -13,7 +13,7 @@ module Oga
13
13
  #
14
14
  # @private
15
15
  class Generator
16
- # @param [Oga::XML::Document|Oga::XML::Node] start The node to serialise.
16
+ # @param [Oga::XML::Document|Oga::XML::Node] root The node to serialise.
17
17
  def initialize(root)
18
18
  @start = root
19
19
 
@@ -65,13 +65,20 @@ module Oga
65
65
 
66
66
  if child_node = children && current.children[0]
67
67
  current = child_node
68
+ elsif current == @start
69
+ # When we have reached the root node we should not process
70
+ # any of its siblings. If we did we'd include XML in the
71
+ # output from elements no part of the root node.
72
+ after_element(current, output) if current.is_a?(Element)
73
+
74
+ break
68
75
  else
69
76
  until next_node = current.is_a?(Node) && current.next
70
77
  if current.is_a?(Node) && current != @start
71
78
  current = current.parent
72
79
  end
73
80
 
74
- send(:after_element, current, output) if current.is_a?(Element)
81
+ after_element(current, output) if current.is_a?(Element)
75
82
 
76
83
  break if current == @start
77
84
  end
@@ -112,7 +119,7 @@ module Oga
112
119
  end
113
120
 
114
121
  # @param [Oga::XML::Element] element
115
- # @param [String] body The content of the element.
122
+ # @param [String] output The content of the element.
116
123
  def on_element(element, output)
117
124
  name = element.expanded_name
118
125
  attrs = ''
@@ -156,7 +163,7 @@ module Oga
156
163
  output << '>'
157
164
  end
158
165
 
159
- # @param [Oga::XML::Document] node
166
+ # @param [Oga::XML::Document] doc
160
167
  # @param [String] output
161
168
  def on_document(doc, output)
162
169
  if doc.xml_declaration
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oga
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.5'
4
+ version: '2.6'
5
5
  platform: java
6
6
  authors:
7
7
  - Yorick Peterse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-06 00:00:00.000000000 Z
11
+ date: 2016-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement