Skip to content

Commit

Permalink
wikipedia-kyoto-japanese-english: suppress "literal string will be fr…
Browse files Browse the repository at this point in the history
…ozen in the future" warning
  • Loading branch information
kou committed Aug 17, 2024
1 parent 1d85a69 commit 6f2ccf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/datasets/wikipedia-kyoto-japanese-english.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def initialize(block)
@sentence = nil
@text_container_stack = []
@element_stack = []
@text_stack = [""]
@text_stack = [+""]
end

def tag_start(name, attributes)
Expand Down Expand Up @@ -220,7 +220,7 @@ def text(data)
private
def push_stacks(name, attributes)
@element_stack.push({name: name, attributes: attributes})
@text_stack.push("")
@text_stack.push(+"")
end

def pop_stacks
Expand Down

0 comments on commit 6f2ccf8

Please sign in to comment.