diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-02-01 21:46:29 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-02-02 16:33:05 +0000 |
commit | 2f6b20e2e06eab6c9adbcb678eff1c2114079dde (patch) | |
tree | 02b372e2cded9f10e5d4552869e701a82d3aa552 /bfd/ChangeLog | |
parent | a591084285cc16a435258641691aa0a8f5bf42ee (diff) | |
download | gdb-2f6b20e2e06eab6c9adbcb678eff1c2114079dde.zip gdb-2f6b20e2e06eab6c9adbcb678eff1c2114079dde.tar.gz gdb-2f6b20e2e06eab6c9adbcb678eff1c2114079dde.tar.bz2 |
gdb: fix formatting for help set/show extended-prompt
The formatting of the help text for 'help set extended-prompt' and
'help show extended-prompt' is a little off.
Here's the offending snippet:
Substitutions are applied to VALUE to compute the real prompt.
The currently defined substitutions are:
\[ Begins a sequence of non-printing characters.
\\ A backslash.
\] Ends a sequence of non-printing characters.
\e The ESC character.
Notice that the line for '\[' is indented more that the others.
Turns out this is due to how we build this help text, something which
is done in Python. We extended a classes __doc__ string with some
dynamically generated text.
The classes doc string looks like this:
"""Set the extended prompt.
Usage: set extended-prompt VALUE
Substitutions are applied to VALUE to compute the real prompt.
The currently defined substitutions are:
"""
Notice the closing """ are in a line of their own, and include some
white space just before. It's this extra white space that's causing
the problem.
Fix the formatting issue by moving the """ to the end of the previous
line. I then add the extra newline in at the point where the doc
string is merged with the dynamically generated text.
Now everything lines up correctly.
Diffstat (limited to 'bfd/ChangeLog')
0 files changed, 0 insertions, 0 deletions