forked from qt-creator/qt-creator
Help: Remove hack for litehtml issue with inline tables
https://github.com/litehtml/litehtml/issues/91 is fixed. Change-Id: I2f44975246831ef9b4b30cbd79407a1639988cb8 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -57,13 +57,7 @@ static QByteArray getData(const QUrl &url)
|
||||
actualUrl.setPath(path);
|
||||
}
|
||||
const LocalHelpManager::HelpData help = LocalHelpManager::helpData(actualUrl);
|
||||
|
||||
// TODO: this is a hack around for https://github.com/litehtml/litehtml/issues/91
|
||||
QByteArray data = help.data;
|
||||
if (actualUrl.path(QUrl::FullyEncoded).endsWith(".css"))
|
||||
data.replace("inline-table", "inline");
|
||||
|
||||
return data;
|
||||
return help.data;
|
||||
}
|
||||
|
||||
LiteHtmlHelpViewer::LiteHtmlHelpViewer(QWidget *parent)
|
||||
|
||||
Reference in New Issue
Block a user