#451189 'man2html | html2text' removes space separating options and parameters.

Package:
html2text
Source:
html2text
Description:
advanced HTML to text converter
Submitter:
"A. Costa"
Date:
2026-08-24 00:47:02 UTC
Severity:
normal
#451189#5
Date:
2007-11-14 00:06:45 UTC
From:
To:
A line from the 'bash' manual:

	% man bash | egrep -n '\-z.*string'
	2025:       -z string

Accurately converted to HTML, then to text, using 'lynx':

    % man2html /usr/share/man/man1/bash.1.gz | lynx -stdin -dump -nolist -dont_wrap_pre | egrep -n '\-z.*string'
    2103:   -z string

But 'html2text' deletes a necessary space:

    % man2html /usr/share/man/man1/bash.1.gz | html2text  -ascii -nobs | egrep -n '\-z.*string'
    1700:  -zstring

Of course 'bash' has no "-zstring" option.

Hope this helps...

#451189#12
Date:
2025-08-23 06:09:26 UTC
From:
To:
Hello,

I tested it on version 2.2.3-3 and didn't get the reported error.
I believe it's fixed.
Could you please confirm?

Best regards,
Bruno Naibert.

#451189#17
Date:
2026-08-24 00:45:38 UTC
From:
To:
Hi,

I'm closing this bug due to lack of response. If you are still
experiencing this issue, feel free to reopen it or file a new bug
report with updated information.

Best regards,
Bruno Naibert