mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
Do not emit leading spaces on blank lines (#3007)
This commit is contained in:
+1
-1
@@ -692,7 +692,7 @@ int V3OutFormatter::endLevels(const char* strg) {
|
||||
}
|
||||
|
||||
void V3OutFormatter::puts(const char* strg) {
|
||||
if (m_prependIndent) {
|
||||
if (m_prependIndent && strg[0] != '\n') {
|
||||
putsNoTracking(indentSpaces(endLevels(strg)));
|
||||
m_prependIndent = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user