Alir3z4 / Alir3z4/html2text

Add a space if none exists following an img alt

Open
#360 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
296
PR merge metrics
No merged PRs in 30d

Description

For example the following is not a great rendering, and could generate incorrect results for ie a screen-reader for accessibility:
```
$ echo 'helloworld' | html2text --images-to-alt
helloworld
```

Expected output would be:
```
hello world
```

(There are probably several other cases of this conceptual bug, for example involving `

` tags. Those may warrant separate tickets depending on how this ticket is received.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.