Skip to content

Commit

Permalink
Add more properties to markdown export files
Browse files Browse the repository at this point in the history
  • Loading branch information
erykjj committed Oct 22, 2024
1 parent a218de8 commit e0b593d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions JWLManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,7 @@ def get_notes():
iss = ''
if item.get('PUB'):
pub = f"{item['PUB']}-{lang_symbol[item['LANG']]}"
lng = lang_name[item['LANG']]
else:
pub = None
fname = f'{self.working_dir}/'
Expand All @@ -1211,9 +1212,12 @@ def get_notes():
txt = f"---\ntitle: {item['TITLE']}\n"
txt += f"date: {item['MODIFIED'][:10]}\n"
if pub:
txt += f"publication: {pub} {iss}".strip() + '\n'
txt += f'publication: {pub} {iss}'.strip() + '\n'
txt += f'language: {lng}\n'
if item.get('DOC'):
txt += f"document: {item['DOC']}\n"
if item.get('HEADING'):
txt += f"document: {item['HEADING']}\n"
txt += f"heading: {item['HEADING']}\n"
if item.get('Link'):
txt += f"link: {item['Link']}\n"
txt += f"color: {item['COLOR']}\n"
Expand Down

0 comments on commit e0b593d

Please sign in to comment.