Skip to content

Commit

Permalink
Protect author names from apostrophes with triple quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
rkent committed Apr 17, 2024
1 parent 1de6556 commit 4d92889
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rosdoc2/verbs/build/builders/sphinx_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def ensure_global(name, default):
ensure_global('rosdoc2_settings', {{}})
ensure_global('extensions', [])
ensure_global('project', "{package_name}")
ensure_global('author', "{package_authors}")
ensure_global('author', \"\"\"{package_authors}\"\"\")
ensure_global('release', "{package.version}")
ensure_global('version', "{package_version_short}")
Expand Down Expand Up @@ -251,7 +251,7 @@ def ensure_global(name, default):
project = '{package.name}'
# TODO(tfoote) The docs say year and author but we have this and it seems more relevant.
copyright = '2021, {package_licenses}'
author = '{package_authors}'
author = \"\"\"{package_authors}\"\"\"
# The full version, including alpha/beta/rc tags
release = '{package.version}'
Expand Down
2 changes: 1 addition & 1 deletion test/packages/only_python/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<name>only_python</name>
<version>0.0.0</version>
<description>Basic Python node using ros2 create command</description>
<maintainer email="[email protected]">Python Pro</maintainer>
<maintainer email="[email protected]">Ye ol' Python Pro</maintainer>
<license>Apache-2.0</license>

<test_depend>ament_copyright</test_depend>
Expand Down

0 comments on commit 4d92889

Please sign in to comment.