Comment blocks with open and close angle brackets fail to parse with mis-aligned tabs using Parse(const char*, size_t)
まだ誰も着手していません。
評価
調査の方向性
Start by reproducing the failure: feed the attached blocksdef.txt, with the comment block indented by mixed tabs, into tinyxml2::Parse using the (const char*, size_t) overload, and confirm it returns XML_ERROR_PARSING_TEXT. The issue does not name the parser source file or function, so find where comment blocks are scanned. Done means the original file parses without re-indenting, and the existing tests still pass.
索引モデルが issue の本文から書いたものです。
説明
Take a comment block like
<!--
<Argument>
<Name>Amount</Name>
<Type>Integer</Type>
<DefaultValue>1</DefaultValue>
<Minimum>1</Minimum>
<Maximum>1</Maximum>
</Argument>
-->
that is in the following file (with all context included)
blocksdef.txt
Passing this into tinyxml2::Parse(const char, size_t) will result in the following error XML_ERROR_PARSING_TEXT and removing the comment block successfully parses the file.
I have deduced the error to be that the angle brackets that may have open and close values <> in the line below the comment block instantiation <!-- must be tab aligned with the comment block to resolve the issue, so you can fix the issue by just tabbing the comment block in like so
<!--
<Argument>
<Name>Amount</Name>
<Type>Integer</Type>
<DefaultValue>1</DefaultValue>
<Minimum>1</Minimum>
<Maximum>1</Maximum>
</Argument>
-->
Due to the fact that a user may not be able to edit the source file, a way to ignore the tab difference in comment blocks would be great. Thank you!
- 主要言語
- C++
- スター
- 5.8k
- フォーク
- 2k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
leethomason/tinyxml2 のほかの issue
-
XMLNode::InsertAfterChild dereferences NULL when addThis is already afterThis's next sibling対応中かも @zhouyunding が 18 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
leethomason/tinyxml2#1101 ·
-
CDATA output containing ]]> is not well-formed XML対応中かも @bconnnnn が 29 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
leethomason/tinyxml2#1097 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
leethomason/tinyxml2#923 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
leethomason/tinyxml2#914 ·
-
New release requestオープン
難易度 2/5 1時間未満 初心者へのやさしさ 15/100
leethomason/tinyxml2#1087 · コメント 4 件 ·
leethomason/tinyxml2 の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
new issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
llvm/llvm-project#240065 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信
-
ai_p2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ClickHouse/ClickHouse#130006 ·
メンテナーはふだん 1 日以内に返信
-
RebuildGeom rebuilds vertex buffers needlessly対応中かも @trish-sl が今日担当しました。 オープンtriage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
secondlife/viewer#6653 ·
メンテナーはふだん 1 日以内に返信