D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
SM
/
SimpleMarkup
/
Filename :
handled_labeled_list-i.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: "Handle labeled list entries, We have a special case to deal with. Because the labels can be long, they force the remaining block of text over the to right:" - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "this is a long label that I wrote:" body: and here is the block of text with a silly margin type: :NOTE - !ruby/struct:SM::Flow::P body: So we allow the special case. If the label is followed by nothing, and if the following line is indented, then we take the indent of that line as the new margin - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "this is a long label that I wrote:" body: here is a more reasonably indented block which will ab attached to the label. type: :NOTE full_name: SM::SimpleMarkup#handled_labeled_list is_singleton: false name: handled_labeled_list params: (line, level, margin, offset, prefix) visibility: private