We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66651b commit f23d84cCopy full SHA for f23d84c
packages/code-export-utils/src/emit.js
@@ -80,7 +80,17 @@ async function emitCommands(commands, emitter) {
80
const _commands = commands.map(command => {
81
return emitter.emit(command)
82
})
83
- const result = await Promise.all(_commands)
+ const emittedCommands = await Promise.all(_commands)
84
+ let result = []
85
+ emittedCommands.forEach(entry => {
86
+ if (typeof entry === 'string' && entry.includes('\n')) {
87
+ entry.split('\n').forEach(subEntry => {
88
+ result.push(subEntry)
89
+ })
90
+ } else {
91
+ result.push(entry)
92
+ }
93
94
return result
95
}
96
0 commit comments