]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/options: chomp whitespace
authorPatrick Donnelly <pdonnell@ibm.com>
Tue, 1 Jul 2025 19:37:53 +0000 (15:37 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Wed, 16 Jul 2025 17:18:52 +0000 (13:18 -0400)
commit3deca5084edac8ee42f4bd27cef55a654572d9ec
tree03e01a9fee1fda8064e471cbb5b305cde09ef083
parentb03ab12921b3d853349ad498e6776dec3d51f1be
common/options: chomp whitespace

If there are trailing newlines in a string (like long_desc), then the generated
C++ code is invalid (because the newline will not be escaped).

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit 73792b78b4b520bcbfac254528f79a80b4d331c5)
src/common/options/y2c.py