I just discovered that I was unable to paste some shell script snippet into a
note. The code was something like <<if [[ "$line" == "$regex" ]]; then>>
Once I pasted the code, basket removed the brackets, resulting in <<if
"$line" == "$regex" ; then>>
I assume this has to do with recent cross-referencing patches, as the only
code in basket that matches "[[" is in src/tools.cpp
If you add code that treats some character sequences in a special way, you
also need to provide some means of escaping. Another alternative is to add
options to disable cross-referencing. Yet another alternative is to disable
cross-referencing for notes tagged "Code".
Either way, I think inability to paste shell code into a note is a bug. Should
I file it?