Skip to content

Commit 6afa9d6

Browse files
Derek Howerdhower-qc
authored andcommitted
Indent SchemaCondition asciidoc list
1 parent 5f75f6a commit 6afa9d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/arch_obj_models/obj.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,16 +284,16 @@ def is_a_version_requirement(ver)
284284
def to_asciidoc(cond = @hsh, indent = 0)
285285
case cond
286286
when String
287-
"#{' ' * indent}* #{cond}, version >= 0"
287+
"#{'*' * indent}* #{cond}, version >= 0"
288288
when Hash
289289
if cond.key?("name")
290290
if cond.key?("version")
291-
"#{' ' * indent}* #{cond['name']}, version #{cond['version']}\n"
291+
"#{'*' * indent}* #{cond['name']}, version #{cond['version']}\n"
292292
else
293-
"#{' ' * indent}* #{cond['name']}, version >= 0\n"
293+
"#{'*' * indent}* #{cond['name']}, version >= 0\n"
294294
end
295295
else
296-
"#{' ' * indent}* #{cond.keys[0]}:\n" + to_asciidoc(cond[cond.keys[0]], indent + 2)
296+
"#{'*' * indent}* #{cond.keys[0]}:\n" + to_asciidoc(cond[cond.keys[0]], indent + 2)
297297
end
298298
when Array
299299
cond.map { |e| to_asciidoc(e, indent) }.join("\n")

0 commit comments

Comments
 (0)