*/
public class XdocFormatter extends AbstractDeclarativeFormatter {
@Override
protected void configureFormatting(FormattingConfig c) {
XdocGrammarAccess grammarAccess = (XdocGrammarAccess) getGrammarAccess();
c.setAutoLinewrap(120);
c.setLinewrap(2, 2, 3).between(grammarAccess.getTextOrMarkupRule(), grammarAccess.getTextOrMarkupRule());
c.setNoSpace().around(grammarAccess.getWSRule());
c.setNoSpace().around(grammarAccess.getANY_WSRule());
c.setNoSpace().around(grammarAccess.getMULTI_NLRule());
configureChapter(c, grammarAccess);
configureSection(c, grammarAccess);
configureSection2(c, grammarAccess);
configureSection3(c, grammarAccess);