private void HandleLineBreaks(String strText, String tag, String openStr, String closeStr,
    		int startCheckPos, int endCheckPos, TreeSet<TagSpecialHandler.Pair> insertList) {
    	// look for any line breaks
    	int lbPos = 0;
    	strText = strText.substring(0, endCheckPos);
    	
    	while ((lbPos = strText.indexOf(LINEBREAK, startCheckPos))>= 0) {
    		insertList.add(new Pair(lbPos, closeStr)); // insert close string before line break
    		logger.finest("close for " + tag + ", pos=" + Integer.toString(lbPos) + " (HandleLineBreaks)");
    		
    		if (lbPos < (endCheckPos - LINEBREAK.length())) {
    			insertList.add(new Pair(lbPos + LINEBREAK.length(), openStr)); // insert open string after line break, if line break is not at the end
                logger.finest("open for " + tag + ", pos=" + Integer.toString(lbPos + LINEBREAK.length()) + " (HandleLineBreaks)");                        
    		}
    		
    		startCheckPos = lbPos + LINEBREAK.length();
    	}
    }