Subversion Repositories HomeAutomation

Rev

Rev 1574 | Rev 1983 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1574 Rev 1727
Line 118... Line 118...
118
	
118
	
119
	inSection = False
119
	inSection = False
120
	
120
	
121
	for line in lines:
121
	for line in lines:
122
		if not inSection:
122
		if not inSection:
123
			if line.find("## Section " + sectionName) != -1:
123
			if line.find("## Section " + sectionName + " --") != -1:
124
				inSection = True
124
				inSection = True
125
				sectionLines.append(line.strip("\n"))
125
				sectionLines.append(line.strip("\n"))
126
		else:
126
		else:
127
			if line.find("## End section " + sectionName) != -1:
127
			if line.find("## End section " + sectionName + " --") != -1:
128
				inSection = False
128
				inSection = False
129
				
129
				
130
			sectionLines.append(line.strip("\n"))
130
			sectionLines.append(line.strip("\n"))
131
			
131
			
132
	return sectionLines
132
	return sectionLines