Semicolon in Text with &#.

オープン
#369 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
tooling

調査の方向性

報告された HTML2Text.handle の呼び出しから始め、アンパサンドを含むテキストの変換でセミコロンが付加される現象を再現してください。変換経路を追跡して余分な文字が現れる理由を特定し、セミコロンのない期待される出力を示す回帰テストを追加してください。

索引モデルが issue の本文から書いたものです。

説明

html2text version 2020.1.16
Python version 3.9.5

import html2text

test = html2text.HTML2Text()
text = test.handle("<p>Sample text K&N. Sample text.</p>")
print(text)

output:
Sample text K&N.; Sample text.

Hi,

I noticed that the module inserts a simcolon in the text when converting a certain string, which I don't want. It doesn't matter which character comes after the &. Is this intentional and is it possible to work around this or is this a bug?

主要言語
Python
スター
2.2k
フォーク
307
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Alir3z4/html2text のほかの issue

Alir3z4/html2text の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。