private String getDisplayText(DjangoTemplatesNode script) {
StringBuilder text = new StringBuilder();
text.append(script.getStartTag()).append(" "); //$NON-NLS-1$
String source = new String(fDocument.get());
// locates the source
ParseNode node = script.getNode();
source = source.substring(node.getStartingOffset(), node.getEndingOffset() + 1);
// gets the first line of the source
StringTokenizer st = new StringTokenizer(source, "\n\r\f"); //$NON-NLS-1$
source = st.nextToken();
if (source.length() <= TRIM_TO_LENGTH) {
text.append(source);