InteractivePrompt icon indicating copy to clipboard operation
InteractivePrompt copied to clipboard

Fix improper line indentation when no results are returned

Open sorrell opened this issue 8 years ago • 3 comments

When no results are returned from an eval, the "prompt" text will be improperly indented. See below.

screenshot at 2017-06-09 13-02-27

sorrell avatar Jun 09 '17 17:06 sorrell

I see this happening even when there are results. The first output line is always indented, for example:

json> print /a
      1
json> print /
      Cannot evaluate JSON pointer "/" because the object at "" does not contain a property named "".
Parameter name: referenceToken
json> print /b
      [
  "x",
  "y"
]
json>
      json>
      json>

ghost avatar Aug 24 '19 18:08 ghost

By the way, nice package, just what I was looking for!

ghost avatar Aug 24 '19 18:08 ghost

I'll see if I can take a look at this this weekend/soon. And thanks!

sorrell avatar Aug 30 '19 14:08 sorrell