Commit 5d02b785 authored by Jared Barocsi's avatar Jared Barocsi Committed by mergify-bot
Browse files

Add indent parameter to Serializer.serialize() (#2177)



Using Utils.indent() gives deprecation warnings to use Serializer instead. However,
the Serializer class itself doesn't provide a means to manually indent a FirrtlNode
string a certain number of times.

The indent variable, previously hardcoded to 0, is now exposed as a second parameter
for the modified serialize function, and the old serialize function just calls the
modified serialize with indents = 0 for binary compatibility

Co-authored-by: default avatarMegan Wachs <megan@sifive.com>
(cherry picked from commit 20890bbd)
parent 48da140b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment