Skip to content

Commit

Permalink
Reduce line lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljones committed Sep 27, 2021
1 parent 5fbb5b6 commit ea71df8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions breathe/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ def generate_xml(self, projects_source, doxygen_options, doxygen_aliases):
# a directory in the Sphinx build area
for project_name, data in project_files.items():

project_path = self.process(data.auto_project_info, data.files, doxygen_options, doxygen_aliases)
project_path = self.process(
data.auto_project_info,
data.files,
doxygen_options,
doxygen_aliases)

project_info = data.auto_project_info.create_project_info(project_path)

Expand All @@ -78,12 +82,15 @@ def process(self, auto_project_info, files, doxygen_options, doxygen_aliases):

full_paths = map(lambda x: auto_project_info.abs_path_to_source_file(x), files)

options = "\n".join("%s=%s" % pair for pair in doxygen_options.items())
aliases = '\n'.join(
f'ALIASES += {name}="{value}"' for name, value in doxygen_aliases.items())

cfg = AUTOCFG_TEMPLATE.format(
project_name=name,
output_dir=name,
input=" ".join(full_paths),
extra='\n'.join("%s=%s" % pair for pair in doxygen_options.items()) + "\n"
+ '\n'.join(f'ALIASES += {name}="{value}"' for name, value in doxygen_aliases.items())
extra=f"{options}\n{aliases}"
)

build_dir = os.path.join(
Expand Down

0 comments on commit ea71df8

Please sign in to comment.