Closed manoj-krishnan closed 7 years ago
Sorry about the initial commit breaking the build. I'm totally new to the rake environment and had to figure things out.
Top work! I've merged it into master, and released a new gem version 1.3.1.
Thank you.
Thanks for the quick turnaround!
The emit_reindented_block_content function was adding extra indents to line numbers > 1 when passed code which is already pre-indented. This causes the beautifier to actually add messy indentation to well indented foreign block code with each run. This fix resolves that problem. Unit tests added.
Screenshots of the problem Before Beautifying
After running beautify once
After running beautify ~4 times (happens when code editor is set to use htmlbeautifier on save)