Raw string literal with interpolation adds extra indent in results ouput (LINQPad 9.3.22)

JohnGoldsmith
edited November 2025 in General

In LINQPad 9.3.22 it looks like the indent before the closing quotes is applied to the result ouput for interpolated literals.

For example if you run the Samples / What's New in C# / What's New in C# 11 / Raw string literals - interpolation the you get the following ouput:

Note that the Raw string literals - indentation removal (no interpolation) sample renders correctly.

Best Answer

  • JoeAlbahari
    edited November 2025 Answer ✓

    The raw string literals are fine - what's changed is the tab size when dumping syntax-colored text. I'll reset this back to 4 characters.

Answers