diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-22 18:49:19 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-22 18:49:19 -0700 |
commit | e74356ec5956d10d399969851fefd4a1f308ad7c (patch) | |
tree | f72df9139bf871cc723f675400f30d63f4143895 /host/lib/ic_reg_maps/common.py | |
parent | 1c1d967ec73906d50ee6e7257a4153db4ab9c507 (diff) | |
download | uhd-e74356ec5956d10d399969851fefd4a1f308ad7c.tar.gz uhd-e74356ec5956d10d399969851fefd4a1f308ad7c.tar.bz2 uhd-e74356ec5956d10d399969851fefd4a1f308ad7c.zip |
uhd: tweaks to ic regs maps common generator code
Diffstat (limited to 'host/lib/ic_reg_maps/common.py')
-rw-r--r-- | host/lib/ic_reg_maps/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/ic_reg_maps/common.py b/host/lib/ic_reg_maps/common.py index 173186eb1..47325a7e3 100644 --- a/host/lib/ic_reg_maps/common.py +++ b/host/lib/ic_reg_maps/common.py @@ -59,7 +59,7 @@ public: delete _state; } -$body + $body void save_state(void){ if (_state == NULL) _state = new $(name)_t(); @@ -181,7 +181,7 @@ def generate(name, regs_tmpl, body_tmpl='', file=__file__): else: regs.append(reg(entry)) #evaluate the body template with the list of registers - body = parse_tmpl(body_tmpl, regs=regs).replace('\n', '\n ').strip() + body = '\n '.join(parse_tmpl(body_tmpl, regs=regs).splitlines()) #evaluate the code template with the parsed registers and arguments code = parse_tmpl(COMMON_TMPL, |