reggen: Avoid whitespace large blocks of whitespace output
Originally posted by @sjgitty in https://github.com/lowRISC/stwg-base/diffs/4
hw/ip/gpio/rtl/gpio_reg_top.sv has a large amount of whitespace around line 1120. Investigate where this is coming from and improve the script based on it.
I don't think gpio_reg_top.sv has that much of lines. It has currently 822 lines
This was raised in https://github.com/lowRISC/stwg-base/pull/333/files#r282153160 and it seems that while currently the file is fine, with the changed input JSON in PR lowRISC/stwg-base#333 it triggers more whitespace output.
(If you cannot reproduce it right now we can leave it open until after lowRISC/stwg-base#333 goes in.)
OK. I will take a look after the PR is merged.
On a mission to clean up old issues, scraping from stalest to freshest.
The spacing here is much improved, closing this one.