Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: fix --help indentation #11142

Closed
wants to merge 1 commit into from
Closed

Conversation

emanuele6
Copy link
Contributor

@emanuele6 emanuele6 commented May 18, 2023

AC_ARG_ENABLE seems to only trim off whitespace from the start and end of its help-string argument, while prepending two spaces of indentation to all lines.

This means that the two spaces of indentation between the --enable-rtsp and the --disable-rtsp line were not removed causing ./configure --help to print:

Optional Features:
  [...]
  --enable-rtsp           Enable RTSP support
    --disable-rtsp          Disable RTSP support

I removed the indentation to fix the issue, now it prints:

Optional Features:
  [...]
  --enable-rtsp           Enable RTSP support
  --disable-rtsp          Disable RTSP support

@github-actions github-actions bot added the build label May 18, 2023
@emanuele6 emanuele6 force-pushed the confhelp branch 2 times, most recently from ce62b34 to ebe8296 Compare May 18, 2023 19:29
@bagder
Copy link
Member

bagder commented May 18, 2023

--disable-hsts seems to have the same problem, can you maybe address that one as well?

AC_ARG_ENABLE seems to only trim off whitespace from the start and end
of its help-string argument, while prepending two spaces of indentation
to all lines.

This means that the two spaces of indentation between the --enable-rtsp
and the --disable-rtsp line were not removed causing ./configure --help
to print:

  Optional Features:
    [...]
    --enable-rtsp           Enable RTSP support
      --disable-rtsp          Disable RTSP support

I removed the indentation to fix the issue, now it prints:

  Optional Features:
    [...]
    --enable-rtsp           Enable RTSP support
    --disable-rtsp          Disable RTSP support

The --enable-hsts and --disable-hsts lines had the same problems, and
have been fixed too.
@bagder
Copy link
Member

bagder commented May 18, 2023

Thanks!

@bagder bagder closed this in 81f3c4b May 18, 2023
@emanuele6 emanuele6 deleted the confhelp branch May 18, 2023 21:50
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
AC_ARG_ENABLE seems to only trim off whitespace from the start and end
of its help-string argument, while prepending two spaces of indentation
to all lines.

This means that the two spaces of indentation between the --enable-rtsp
and the --disable-rtsp line were not removed causing ./configure --help
to print:

  Optional Features:
    [...]
    --enable-rtsp           Enable RTSP support
      --disable-rtsp          Disable RTSP support

I removed the indentation to fix the issue, now it prints:

  Optional Features:
    [...]
    --enable-rtsp           Enable RTSP support
    --disable-rtsp          Disable RTSP support

The --enable-hsts and --disable-hsts lines had the same problems, and
have been fixed too.

Closes curl#11142
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants