datafileTag.getAttachedSweaveStrings().add(swl);
System.out.println("datafileTag.getLatexStartWithSpacers(): " + datafileTag.getLatexStartWithSpacers());
addMergedUndo(new AddSweaveTagUndoableEdit(datafileTag));
System.out.println("datafileTag.getLatexStartWithSpacers(): " + datafileTag.getLatexStartWithSpacers());
insertText( datafileTag.getSpacers()[0] + datafileTag.getSweaveString() + datafileTag.getSpacers()[1],
datafileTag.getLatexStartWithSpacers());
endMergedUndo();
swl.setLatexPos(datafileTag.getLatexEnd()-2);