Skip to content

Commit

Permalink
py-html2text: update to 2024.2.25. Changes:
Browse files Browse the repository at this point in the history
* Fix #332: Insert at most one space for multiple emphasis
* Feature #318: Make padded tables more similar to pandoc's pipe_tables.
* Add support for Python 3.9.
* Fix extra line breaks inside html link text (between '[' and ']')
* Fix #344: indent ``<ul>`` inside ``<ol>`` three spaces instead of two
  to comply with CommonMark, GFM, etc.
* Fix #324: unnecessary spaces around ``<b>``, ``<em>``, and ``strike`` tags.
* Don't wrap tables by default and add a ``--wrap-tables`` config option.
* Feature #198: Ignore ``<p>`` tags inside table rows.
* Don't wrap tables by default and add a ``--wrap-tables`` config option
* Remove support for Python ≤ 3.5. Now requires Python 3.6+.
* Support for Python 3.10+.
* Fix #320 padding empty tables and tables with no ``</tr>`` tags.
* Add ``ignore_mailto_links`` config option to ignore ``mailto:``
  style links.
* Feature #407: Support the superscript and subscript tags.
* Fix #373: ``\n`` inside text of a Markdown link.
* Feature #406: Improve support for null atttibute values.
  • Loading branch information
schmonz committed Feb 25, 2024
1 parent 141f6d4 commit 6436a80
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
11 changes: 4 additions & 7 deletions textproc/py-html2text/Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
# $NetBSD: Makefile,v 1.58 2022/01/05 15:41:24 wiz Exp $
# $NetBSD: Makefile,v 1.59 2024/02/25 22:31:24 schmonz Exp $

DISTNAME= html2text-2020.1.16
DISTNAME= html2text-2024.2.25
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= textproc converters python
MASTER_SITES= ${MASTER_SITE_PYPI:=h/html2text/}

MAINTAINER= [email protected]
HOMEPAGE= https://github.com/Alir3z4/html2text
HOMEPAGE= https://alir3z4.github.io/html2text/
COMMENT= Convert HTML into easy-to-read plain ASCII text
LICENSE= gnu-gpl-v3

USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27

USE_PKG_RESOURCES= yes

post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} html2text html2text-${PYVERSSUFFIX} || ${TRUE}

.include "../../lang/python/egg.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
21 changes: 11 additions & 10 deletions textproc/py-html2text/PLIST
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
@comment $NetBSD: PLIST,v 1.13 2020/01/17 18:14:49 schmonz Exp $
@comment $NetBSD: PLIST,v 1.14 2024/02/25 22:31:24 schmonz Exp $
bin/html2text-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/${WHEEL_INFODIR}/AUTHORS.rst
${PYSITELIB}/${WHEEL_INFODIR}/COPYING
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/html2text/__init__.py
${PYSITELIB}/html2text/__init__.pyc
${PYSITELIB}/html2text/__init__.pyo
${PYSITELIB}/html2text/__main__.py
${PYSITELIB}/html2text/__main__.pyc
${PYSITELIB}/html2text/__main__.pyo
${PYSITELIB}/html2text/_typing.py
${PYSITELIB}/html2text/_typing.pyc
${PYSITELIB}/html2text/_typing.pyo
${PYSITELIB}/html2text/cli.py
${PYSITELIB}/html2text/cli.pyc
${PYSITELIB}/html2text/cli.pyo
Expand All @@ -22,9 +26,6 @@ ${PYSITELIB}/html2text/elements.py
${PYSITELIB}/html2text/elements.pyc
${PYSITELIB}/html2text/elements.pyo
${PYSITELIB}/html2text/py.typed
${PYSITELIB}/html2text/typing.py
${PYSITELIB}/html2text/typing.pyc
${PYSITELIB}/html2text/typing.pyo
${PYSITELIB}/html2text/utils.py
${PYSITELIB}/html2text/utils.pyc
${PYSITELIB}/html2text/utils.pyo
8 changes: 4 additions & 4 deletions textproc/py-html2text/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.40 2021/10/26 11:23:04 nia Exp $
$NetBSD: distinfo,v 1.41 2024/02/25 22:31:24 schmonz Exp $

BLAKE2s (html2text-2020.1.16.tar.gz) = fa71ec8c86071d35057dd2c528d70aeddb11356ca800786436b06fee2d62c40b
SHA512 (html2text-2020.1.16.tar.gz) = 14453c98e81d05afb3241b04a9e50caf63e4b6f857337b4bd9f53e6b8fa7146aa6a1f4f64777db9fa350316b19fe62a0033dce5748191ca9fbd17a8757002855
Size (html2text-2020.1.16.tar.gz) = 49464 bytes
BLAKE2s (html2text-2024.2.25.tar.gz) = bc6758796c7fcd0499221de4dcc6a01509fb4ec9e9b4947d9947e59d0b7cf803
SHA512 (html2text-2024.2.25.tar.gz) = 9adf1367b644a7dccef35ddd0041ade8a206943927585a4c1766ff76e2ffc9ab58479d285fe8eb2e18b80270f9eb50ec82855fb8b0df8525e905278abd8ddc22
Size (html2text-2024.2.25.tar.gz) = 56175 bytes

0 comments on commit 6436a80

Please sign in to comment.