mirror of https://github.com/KLayout/klayout.git
Fixed output of stdout to macro IDE log
No additional newlines are inserted on flush - this enhances compatibility with unit test framework.
This commit is contained in:
parent
d90593df89
commit
cb29a2d790
|
|
@ -1433,10 +1433,7 @@ MacroEditorDialog::eventFilter (QObject *obj, QEvent *event)
|
||||||
void
|
void
|
||||||
MacroEditorDialog::flush ()
|
MacroEditorDialog::flush ()
|
||||||
{
|
{
|
||||||
if (! m_new_line) {
|
// .. no specific implementation required for flush() ..
|
||||||
// insert a new line if the stream changes ..
|
|
||||||
write_str ("\n", m_os);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
@ -1481,9 +1478,9 @@ MacroEditorDialog::write_str (const char *text, output_stream os)
|
||||||
mp_console_text->setTextCursor (c);
|
mp_console_text->setTextCursor (c);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_os != OS_none && os != m_os) {
|
if (m_os != OS_none && os != m_os && ! m_new_line) {
|
||||||
// flush if the stream changes ..
|
// insert a new line if the stream changes ..
|
||||||
flush ();
|
write_str ("\n", m_os);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_os != os) {
|
if (m_os != os) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue