LPRun html output formatting changed.

Hi.

I run queries through LPRun with the "-format=html" option to produce static html files that are published through an internal web site.
These html files visually resemble the LINQPad output window with the blue themed tables and such.

This morning these files, though they are strictly html, no longer resemble the LINQPad output window. The tables are not drawn with visible lines, they do not have the LINQPad "theme".

My best explanation is that LPRun mistakes "-format=html" for "-format=htmlfrag".

I made a simple query (C# Expression)
Enumerable.Range(1,10)

And ran it through LPRun.
lprun -format=html "C:\LINQPad Queries\tmp5.linq"
lprun -format=htmlfrag "C:\LINQPad Queries\tmp5.linq"

Those two seem to produce the same result.
Did something change in LPRun?

Comments

  • In case somebody else is struggling with this, I put in a temporary workaround by always using -format=htmlfrag option and prepending the output with the standard header. It solves my immediate concern and will still work, although contrived, when/if the issue has been resolved. Provided it's something with LPRun and I haven't messed it up locally.
  • Thanks for reporting. This is fixed in a new beta:

    http://www.linqpad.net/download.aspx#beta

    Cheers
  • Thank you.

    Incidentally, the last tip you provided, using File.WriteAllLines(Util.Cmd(Lprun)), made the workaround a breeze to put in place (and remove). It would have been a tedious fix if I was still using Command line piping to generate the html file.

    Cheers :)
  • @JoeAlbahari any chance you could include this fix in the LINQPad 5 beta too please? :smile:
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!