So I found dataproviders/x/queryplan to get a WebI document's SQL. But the SQL is all on one line. If my report's SQL is:
select blah, foo, bar from table
then the /queryplan result will look like:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><queryplan editable="true" custom="false"> <statement index="1">select blah, foo, bar from table</statement></queryplan>
How do I get the query's SQL in its original form?