Compare commits
No commits in common. "24dc516d64549505ba90efcc9714ed37e6212058" and "e07964af55aef4961a07ee62549d4d45fafb937e" have entirely different histories.
24dc516d64
...
e07964af55
@ -415,7 +415,6 @@ class Headline:
|
|||||||
if (
|
if (
|
||||||
isinstance(line, DelimiterLine)
|
isinstance(line, DelimiterLine)
|
||||||
and line.delimiter_type == DelimiterLineType.END_BLOCK
|
and line.delimiter_type == DelimiterLineType.END_BLOCK
|
||||||
and line.type_data.subtype == current_node.header.type_data.subtype
|
|
||||||
):
|
):
|
||||||
|
|
||||||
start = current_node.header.linenum
|
start = current_node.header.linenum
|
||||||
@ -873,24 +872,9 @@ class Headline:
|
|||||||
yield from get_links_from_content(item.content)
|
yield from get_links_from_content(item.content)
|
||||||
|
|
||||||
def get_lines_between(self, start, end):
|
def get_lines_between(self, start, end):
|
||||||
# @TODO: Generalize for other line types too.
|
for line in self.contents:
|
||||||
everything = (
|
|
||||||
[]
|
|
||||||
# + self.keywords
|
|
||||||
+ self.contents
|
|
||||||
# + self.list_items
|
|
||||||
# + self.table_rows
|
|
||||||
# + self.properties
|
|
||||||
# + self.structural
|
|
||||||
+ self.delimiters
|
|
||||||
)
|
|
||||||
|
|
||||||
for line in everything:
|
|
||||||
if start <= line.linenum < end:
|
if start <= line.linenum < end:
|
||||||
if 'get_raw' in dir(line):
|
yield "".join(line.get_raw())
|
||||||
yield "".join(line.get_raw())
|
|
||||||
else:
|
|
||||||
yield line.line
|
|
||||||
|
|
||||||
def get_contents(self, format):
|
def get_contents(self, format):
|
||||||
if format == "raw":
|
if format == "raw":
|
||||||
|
Loading…
Reference in New Issue
Block a user