diff --git a/compiler/layouter.nim b/compiler/layouter.nim index 0c888b455a55a..7c1c9d16c5e35 100644 --- a/compiler/layouter.nim +++ b/compiler/layouter.nim @@ -499,7 +499,8 @@ proc emitTok*(em: var Emitter; L: TLexer; tok: TToken) = rememberSplit(splitComma) wrSpace em of openPars: - if tok.strongSpaceA > 0 and not em.endsInWhite and not em.wasExportMarker: + if tok.strongSpaceA > 0 and not em.endsInWhite and + (not em.wasExportMarker or tok.tokType == tkCurlyDotLe): wrSpace em wr(em, TokTypeToStr[tok.tokType], ltSomeParLe) rememberSplit(splitParLe)