Skip to content

TWiki reader dies with "unexpected '9' or '\n'" #10743

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

Open
chicks-net opened this issue Mar 31, 2025 · 2 comments
Open

TWiki reader dies with "unexpected '9' or '\n'" #10743

chicks-net opened this issue Mar 31, 2025 · 2 comments

Comments

@chicks-net
Copy link

chicks-net commented Mar 31, 2025

Explain the problem.

Base file is https://github.com/fini-net/www-fini-net/blob/main/content/CCexhibitA.txt

I run pandoc -f twiki -t commonmark CCexhibitA.txt

I get

Error at "CCexhibitA.txt_chunk_chunk" (line 3, column 1):
unexpected '9' or '\n'
expecting end of input or inline

All of the other files in this directory converted with this command.

  • Folding the lines to be shorter and removing random 9's made no difference.
  • Removing the head matter does not matter.
  • Removing the 9 heading does not help. Removing those lines at the top does not effect the line noted in the error message.
  • --verbose did not change the output
  • --log did not produce a log (separate bug?)

Pandoc version?

% pandoc --version
pandoc 3.6.4
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /Users/chicks/.local/share/pandoc
Copyright (C) 2006-2024 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.

Installed on MacOS with homebrew.

@chicks-net chicks-net added the bug label Mar 31, 2025
@jgm
Copy link
Owner

jgm commented Mar 31, 2025

By bisection I determined that the line in question is 96 Mowat Avenue in

<blockquote><strong>TUCOWS Inc.

96 Mowat Avenue

Toronto, Ontario

M6K 3M1

Attention:&#65533; Legal Affairs</strong></blockquote>

I have nothing to do with the twiki reader, but I suspect the issue is that the parser for <strong> elements is expecting inline content without paragraph breaks. Removing these blank lines in the input should solve it.

--log only logs warnings and info messages. In this case you didn't get any of these, just an error which stops execution.

@chicks-net
Copy link
Author

Removing the <strong> tags fixed it. fini-net/www-fini-net#3

Thanks for finding the 9 that was causing the problem.

I'm going to leave this open in case this is actually a bug you want to fix, but my problem is 💯 % solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants