kaste / PyTest

pytest runner and view annotator for sublime text
21 stars 6 forks source link

Wrap long lines in the annotations/phantoms #7

Open chenbotao828 opened 6 years ago

chenbotao828 commented 6 years ago

Sometimes, I need to read the full error message. But, in the image below for example, the last line of output pannel, which begin with self, is partly covered because of no line wrap. So , can anyone tell me how to wrap lines in output pannel? Image

kaste commented 6 years ago

These panels here are like HTML overlays (or inlays). Sublime calls them Phantoms. AFAIR there is no built-in method to wrap them. So you had to scroll the whole view. I'm open to a PR of course.

kaste commented 6 years ago

Note: Basically, the formatting of these annotations can be found in https://github.com/kaste/PyTest/blob/master/formatters.py