Comment blocks with open and close angle brackets fail to parse with mis-aligned tabs using Parse(const char*, size_t)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 22/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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!
- Lenguaje dominante
- C++
- Estrellas
- 5.8k
- Forks
- 2k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de leethomason/tinyxml2
-
XMLNode::InsertAfterChild dereferences NULL when addThis is already afterThis's next siblingPosiblemente ocupada @zhouyunding la tomó hace 18 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
leethomason/tinyxml2#1101 ·
-
CDATA output containing ]]> is not well-formed XMLPosiblemente ocupada @bconnnnn la tomó hace 29 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
leethomason/tinyxml2#1097 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
leethomason/tinyxml2#923 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
leethomason/tinyxml2#914 ·
-
New release requestAbierto
Dificultad 2/5 Menos de una hora Aptitud para principiantes 15/100
leethomason/tinyxml2#1087 · 4 comentarios ·
Todos los issues de leethomason/tinyxml2
Issues similares
-
ai_p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ClickHouse/ClickHouse#130006 ·
Los mantenedores suelen responder en 1 día
-
DepotMaintain: EN longer string moves the hint popup buttons out of reach // WpfGUI English LanguageAbiertoclient: WpfGui module: depot question
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
MaaAssistantArknights/MaaAssistantArknights#19169 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
area: certificates bug outdated-version
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
RafaelNGP/xbox-cloud-gaming-ps5#381 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
apache/iceberg-cpp#1103 ·
Los mantenedores suelen responder en 2 días