-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of depercated tag "list" cause xml2rfc to crash. #1127
Labels
bug
Something isn't working
Comments
@loghyr, This is a xml2rfc bug. The error you get is from
Since this is a |
kesara
changed the title
{"error":"sequence item 0: expected str instance, Line found"}
Use of depercated tag "list" cause xml2rfc to crash.
Jun 14, 2024
The full error message is:
```
draft-haynes-nfsv4-flexfiles-v2-00.v2v3.xml(312): Warning: Was asked to render a deprecated element: <list>
c: '<Element list at 0x10ab6c320>'
Traceback (most recent call last):
[…]
File "/opt/homebrew/lib/python3.11/site-packages/xml2rfc/writers/text.py", line 371, in render
res = func(e, width, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/xml2rfc/writers/text.py", line 616, in default_renderer
ctext = "\n\n".join(ctext)
^^^^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, Line found
*** xml2rfc failed, status 1 (possibly try with -r)
```
Workaround:
Delete line 17 of the XML file:
```
version="3"
```
Now:
```
xml2rfc draft-haynes-nfsv4-flexfiles.xml
```
…works.
For a more compliant solution.
```
xml2rfc --v2v3 draft-haynes-nfsv4-flexfiles.xml
xml2rfc draft-haynes-nfsv4-flexfiles-v2v3.xml
```
(You can continue using the -v2v3 result as your XML file, or stick with simply using the XML file with the deleted `version=“3”`.)
Grüße, Carsten
… On 14. Jun 2024, at 06:53, Tom Haynes ***@***.***> wrote:
Describe the issue
To reproduce:
git clone ***@***.*** ***@***.***>:loghyr/flexfilesv2.git
cd flexfilesv2
make
Submit resulting file draft-haynes-nfsv4-flexfiles-v2-00.xml to https://author-tools.ietf.org/idnits
Or submit the following: (might have to rename to .xml)
draft-haynes-nfsv4-flexfiles-v2-00.txt <https://github.com/user-attachments/files/15813948/draft-haynes-nfsv4-flexfiles-v2-00.txt>
Code of Conduct
I agree to follow the IETF's Code of Conduct <https://github.com/ietf-tools/.github/blob/main/CODE_OF_CONDUCT.md>
—
Reply to this email directly, view it on GitHub <#1127>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAFUTVTBRPXSYEPXC2T3U3ZHJZNNAVCNFSM6AAAAABJJT4ZFOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TENJQGE3DMOI>.
You are receiving this because you are subscribed to this thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
To reproduce:
git clone [email protected]:loghyr/flexfilesv2.git
cd flexfilesv2
make
Submit resulting file draft-haynes-nfsv4-flexfiles-v2-00.xml to https://author-tools.ietf.org/idnits
Or submit the following: (might have to rename to .xml)
draft-haynes-nfsv4-flexfiles-v2-00.txt
Code of Conduct
The text was updated successfully, but these errors were encountered: