Skip to content

Commit

Permalink
Set default language
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Dec 18, 2019
1 parent 525320f commit b212f4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/eoatex2imxml.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8; mode: python -*-
# Time-stamp: <2019-12-17 13:07:39 (kthoden)>
# Time-stamp: <2019-12-17 16:52:20 (kthoden)>

"""
Converts Latex files into a customized DocBook XML file.
Expand Down Expand Up @@ -1160,6 +1160,11 @@ def insert_bibliographies(
xml_element,
citations_json
)

if not language:
logging.warning("Missing a language. Falling back to English.")
language = "en"

logging.info( "keywords:" )
logging.info( keyword_to_print_bibl_el.keys() )
if len(keyword_to_print_bibl_el) > 0:
Expand Down

0 comments on commit b212f4a

Please sign in to comment.