Define specific document type for orgmode sub-documents

This commit is contained in:
Jean-Francois Dockes 2022-01-04 14:02:26 +01:00
parent a7a66ebc03
commit b3bb3784fc
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class OrgModeExtractor:
iseof = rclexecm.RclExecM.noteof
if self.currentindex >= len(self.docs) -1:
iseof = rclexecm.RclExecM.eofnext
self.em.setmimetype("text/plain")
self.em.setmimetype("text/x-orgmode-sub")
try:
self.em.setfield("title", docdata.splitlines()[0])
except:

View File

@ -225,6 +225,7 @@ text/x-lua = internal
text/x-mail = internal
text/x-man = exec rclman;maxseconds=30
text/x-orgmode = execm rclorgmode.py
text/x-orgmode-sub = internal text/plain
text/x-perl = internal text/plain
text/x-purple-html-log = internal text/html
text/x-purple-log = exec rclpurple