@@ -63,8 +65,13 @@ public class FormattingHelpActivity extends BrandedActivity {
* When (un)checking a checkbox in a note which contains code-blocks, the "`"-characters get stripped out in the TextView and therefore the given lineNumber is wrong
* Find number of lines starting with ``` before lineNumber
*/
booleaninCodefence=false;
for(inti=0;i<lines.length;i++){
if(lines[i].startsWith("```")){
inCodefence=!inCodefence;
lineNumber++;
}
if(inCodefence&&TextUtils.isEmpty(lines[i])){
lineNumber++;
}
if(i==lineNumber){
@@ -85,7 +92,8 @@ public class FormattingHelpActivity extends BrandedActivity {