@Test public void linkSpanWithSurroundingItalics() { builder.beginDocument(); builder.beginSpan(SpanType.ITALIC, new Attributes()); builder.characters("prefix "); LinkAttributes attributes = new LinkAttributes(); attributes.setHref("http: builder.beginSpan(SpanType.LINK, attributes); builder.characters("text"); builder.endSpan(); builder.endSpan(); builder.endDocument(); assertEquals("_prefix [text | http: }
@Override public void characters(String text) { assertOpenBlock(); try { for (int x = 0; x < text.length(); ++x) { char c = text.charAt(x); switch (c) { case '\u00A0': currentBlock.write(' '); break; case '\u00A9': currentBlock.write("(c)"); break; case '\u00AE': currentBlock.write("(r)"); break; default: currentBlock.write(c); break; } } } catch (IOException e) { throw new RuntimeException(e); } }
ConfluenceDocumentBuilder extends AbstractMarkupDocumentBuilder { @Override public void characters(String text) { assertOpenBlock(); try { for (int x = 0; x < text.length(); ++x) { char c = text.charAt(x); switch (c) { case '\u00A0': currentBlock.write(' '); break; case '\u00A9': currentBlock.write("(c)"); break; case '\u00AE': currentBlock.write("(r)"); break; default: currentBlock.write(c); break; } } } catch (IOException e) { throw new RuntimeException(e); } } }
ConfluenceDocumentBuilder extends AbstractMarkupDocumentBuilder { @Override public void characters(String text) { assertOpenBlock(); try { for (int x = 0; x < text.length(); ++x) { char c = text.charAt(x); switch (c) { case '\u00A0': currentBlock.write(' '); break; case '\u00A9': currentBlock.write("(c)"); break; case '\u00AE': currentBlock.write("(r)"); break; default: currentBlock.write(c); break; } } } catch (IOException e) { throw new RuntimeException(e); } } ConfluenceDocumentBuilder(Writer out); }
ConfluenceDocumentBuilder extends AbstractMarkupDocumentBuilder { @Override public void characters(String text) { assertOpenBlock(); try { for (int x = 0; x < text.length(); ++x) { char c = text.charAt(x); switch (c) { case '\u00A0': currentBlock.write(' '); break; case '\u00A9': currentBlock.write("(c)"); break; case '\u00AE': currentBlock.write("(r)"); break; default: currentBlock.write(c); break; } } } catch (IOException e) { throw new RuntimeException(e); } } ConfluenceDocumentBuilder(Writer out); @Override void characters(String text); @Override void entityReference(String entity); @Override void image(Attributes attributes, String url); @Override void link(Attributes attributes, String hrefOrHashName, String text); @Override void imageLink(Attributes linkAttributes, Attributes imageAttributes, String href, String imageUrl); @Override void acronym(String text, String definition); @Override void lineBreak(); }
ConfluenceDocumentBuilder extends AbstractMarkupDocumentBuilder { @Override public void characters(String text) { assertOpenBlock(); try { for (int x = 0; x < text.length(); ++x) { char c = text.charAt(x); switch (c) { case '\u00A0': currentBlock.write(' '); break; case '\u00A9': currentBlock.write("(c)"); break; case '\u00AE': currentBlock.write("(r)"); break; default: currentBlock.write(c); break; } } } catch (IOException e) { throw new RuntimeException(e); } } ConfluenceDocumentBuilder(Writer out); @Override void characters(String text); @Override void entityReference(String entity); @Override void image(Attributes attributes, String url); @Override void link(Attributes attributes, String hrefOrHashName, String text); @Override void imageLink(Attributes linkAttributes, Attributes imageAttributes, String href, String imageUrl); @Override void acronym(String text, String definition); @Override void lineBreak();  }