Skip to content

Commit

Permalink
Use :log_depth from options in indent, or log_depth (for TriG).
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 27, 2015
1 parent ee0e49b commit e1c1af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/turtle/writer.rb
Expand Up @@ -380,7 +380,7 @@ def preprocess_statement(statement)
# @param [Integer] modifier Increase depth by specified amount
# @return [String] A number of spaces, depending on current depth
def indent(modifier = 0)
" " * (log_depth * 2 + modifier)
" " * (@options.fetch(:log_depth, log_depth) * 2 + modifier)
end

# Reset internal helper instance variables
Expand Down

0 comments on commit e1c1af6

Please sign in to comment.