}
}
@Test
public void shouldThrowExeptionWithCodeWithTabs() throws Exception {
TubainaBuilder builder = new TubainaBuilder(ParseType.LATEX);
String tabReplacement = " ";
builder.codeLength(6 + tabReplacement.length());
String original = "[code java]5\t678901[/code]";
Assert.assertTrue(replacer.accepts(original));
try {
replacer.execute(original, chunks);
Assert.fail("should throw exception");
} catch (TubainaException e) {
} finally {
builder.codeLength(10000);
}
}