]> git.apps.os.sepia.ceph.com Git - ceph-ci.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:26 +0000 (13:18 -0400)
commit12aa7dea805dff04b10b466504f4a8f71cf7820a
tree6cd097de3d4d90c947e0e6cab97724428647ee54
parent84b72161526df3630aaeb63baf3cdd26b0693465
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