Boop icon indicating copy to clipboard operation
Boop copied to clipboard

Bug Report: unexpected replacement of tabs with spaces

Open xoism opened this issue 2 years ago • 0 comments
trafficstars

Any tab entered into Boop, either via typing or the result of a script, is converted into 4 spaces.

Expected behavior:

  • The only changes made to the text should be done by the scripts themselves.
  • Result text should be exactly what the script outputs.

Steps to reproduce:

  1. Open boop
  2. press tab, a, s, d, f
  3. copy all text
  4. open terminal
  5. type echo " then paste then "
  6. compare output to echo "\tasdf"
/**
{
	"api": 1,
	"name": "Tab Test",
	"description": "Return tab + some text",
	"author": "xoism",
	"icon": "metamorphose",
	"tags": "test,tab"
}
**/

function main (state) {
	state.text = "\tasdf";
}
  1. copy output of above script
  2. perform same test in terminal as above

Boop version: 1.4.0 OS: macOS 12.6.1

xoism avatar Nov 26 '22 00:11 xoism