Преглед изворни кода

org_reader: Cls org_reader, add method to separate header and content

Empty method for now, just declaration
Gendre Sébastien пре 7 година
родитељ
комит
26691ad4ee
1 измењених фајлова са 16 додато и 1 уклоњено
  1. 16 1
      org_reader/org_reader.py

+ 16 - 1
org_reader/org_reader.py

@@ -22,4 +22,19 @@ class OrgReader(BaseReader):
     """Reader for Org files"""
     enabled = True
     file_extensions = ['org']
-    
+
+    def _separate_header_and_content(self, text_lines):
+        """
+        From a given Org text, return the header separate from the content.
+        The given text must be separate line by line and be a list.
+        The return is a list of two items: header and content.
+        Theses two items are text separate line by line in format of a list
+        Keyword Arguments:
+        text_lines -- A list, each item is a line of the texte
+        Return:
+        [
+          header   -- A list, each item is a line of the texte
+          content  -- A list, each item is a line of the texte
+        ]
+        """
+        pass