Commit c42e00ca authored by Andrea Iacovitti's avatar Andrea Iacovitti

Preserve whitespaces in Alert window's text.

Other browsers do the same and it helps debugging stuff.
parent dd4debc0
......@@ -2109,7 +2109,7 @@ JSValue *WindowFunc::callAsFunction(ExecState *exec, JSObject *thisObj, const Li
part->xmlDocImpl()->updateRendering();
if ( part )
emit part->browserExtension()->requestFocus(part);
KMessageBox::error(widget, Qt::convertFromPlainText(str, Qt::WhiteSpaceNormal), caption);
KMessageBox::error(widget, Qt::convertFromPlainText(str), caption);
return jsUndefined();
}
case Window::Confirm: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment