860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
|
# File 'lib/propolize.rb', line 860
def getDocumentComponent
itemList = ItemList.new(:isCritique => @isCritique)
currentItemLines = nil
for line in lines do
itemStartMatch = line.match(/^\*\s+(.*)$/) if itemStartMatch if currentItemLines != nil
addItemToList(itemList, currentItemLines) end
currentItemLines = [itemStartMatch[1]] else
currentItemLines.push(line.strip) end
end
if currentItemLines != nil
addItemToList(itemList, currentItemLines) end
return itemList
end
|