Skip to content

Commit

Permalink
[rst2folia] implementing support for 'containers' #18
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Nov 10, 2020
1 parent 64459b1 commit a51def5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion foliatools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""FoLiA-tools contains various Python-based command line tools for working with FoLiA XML (Format for Linguistic Annotation)"""

VERSION = "2.3.1"
VERSION = "2.3.2"
6 changes: 6 additions & 0 deletions foliatools/rst2folia.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,12 @@ def depart_paragraph(self, node):
if not self.ignore_depart(node):
self.closestructure('p')

def visit_container(self, node):
self.initstructure('div',cls="division")

def depart_container(self, node):
self.closestructure('div')

def visit_section(self, node):
self.initstructure('div',cls="section")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def read(fname):

setup(
name = "FoLiA-tools",
version = "2.3.1", #also change in __init__.py
version = "2.3.2", #also change in __init__.py
author = "Maarten van Gompel",
author_email = "proycon@anaproy.nl",
description = ("FoLiA-tools contains various Python-based command line tools for working with FoLiA XML (Format for Linguistic Annotation)"),
Expand Down

0 comments on commit a51def5

Please sign in to comment.