if (dtc.getDocument().get(dtc.getStart(), dtc.getEnd() - dtc.getEnd()).trim().length() == 0)
if (dtc.getDocument().get(dtc.getStart(), dtc.getEnd() - dtc.getStart()).trim().length() == 0)
	public void format(TemplateBuffer buffer, TemplateContext context) throws BadLocationException {		try {			if (fUseCodeFormatter)				// try to format and fall back to indenting				try {					format(buffer, (JavaContext) context);				} catch (BadLocationException e) {					indent(buffer);				} catch (MalformedTreeException e) {					indent(buffer);				}			else				indent(buffer);			// don't trim the buffer if the replacement area is empty			// case: surrounding empty lines with block			if (context instanceof DocumentTemplateContext) {				DocumentTemplateContext dtc= (DocumentTemplateContext) context;				if (dtc.getStart() == dtc.getCompletionOffset())					if (dtc.getDocument().get(dtc.getStart(), dtc.getEnd() - dtc.getEnd()).trim().length() == 0)						return;			}						trimBegin(buffer);		} catch (MalformedTreeException e) {			throw new BadLocationException();		}	}