Do not emit leading spaces on blank lines (#3007)

This commit is contained in:
Geza Lore
2021-06-04 15:00:13 +01:00
committed by GitHub
parent fb561d925a
commit eea7e1bd2a
9 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -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;
}