diff --git a/qrenderdoc/Code/QRDUtils.cpp b/qrenderdoc/Code/QRDUtils.cpp index 0d8fd0676..decddd753 100644 --- a/qrenderdoc/Code/QRDUtils.cpp +++ b/qrenderdoc/Code/QRDUtils.cpp @@ -207,6 +207,8 @@ struct RichResourceText int idealWidth = 0; int numLines = 1; + bool forcehtml = false; + // cache the context once we've obtained it. ICaptureContext *ctxptr = NULL; @@ -325,9 +327,15 @@ struct RichResourceText } else { - QString htmlfrag = v.toString().toHtmlEscaped(); + QString htmlfrag = v.toString(); + + if(!forcehtml) + { + htmlfrag = htmlfrag.toHtmlEscaped(); + htmlfrag.replace(lit(" "), lit(" ")); + } + int newlines = htmlfrag.count(QLatin1Char('\n')); - htmlfrag.replace(lit(" "), lit(" ")); htmlfrag.replace( lit("\n"), lit("
| "));
@@ -507,7 +515,8 @@ void RichResourceTextInitialise(QVariant &var, ICaptureContext *ctx, bool parseU
// do a simple string search first before using regular expressions
if(!text.contains(lit("ResourceId::")) && !text.contains(lit("GPUAddress::")) &&
- !text.contains(lit("__rd_msgs::")) && !text.contains(QLatin1Char('@')) && !parseURLs)
+ !text.contains(lit("__rd_msgs::")) && !text.contains(QLatin1Char('@')) && !parseURLs &&
+ !(text.startsWith(lit(" |